freebsd-dev/sbin/ipf/common/pcap-ipf.h
Cy Schubert 41edb306f0 ipfilter: Move userland bits to sbin
Through fixes and improvements our ipfilter sources have diverged
enough to warrant move from contrib into sbin/ipf. Now that I'm
planning on implementing MSS clamping as in iptables it makes more
sense to move ipfilter to sbin.

This is the second of three commits of the ipfilter move.

Suggested by glebius on two occaions.

Suggested by and discussed with:	glebius
Reviewed by:				glebius, kp (for #network)
MFC after:				1 month
Differential Revision:		https://reviews.freebsd.org/D33510
2021-12-20 06:16:33 -08:00

36 lines
642 B
C

/* $FreeBSD$ */
/*
* Copyright (C) 2012 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
*/
/*
* This header file is constructed to match the version described by
* PCAP_VERSION_MAJ.
*
* The structure largely derives from libpcap which wouldn't include
* nicely without bpf.
*/
typedef struct pcap_filehdr {
u_int pc_id;
u_short pc_v_maj;
u_short pc_v_min;
u_int pc_zone;
u_int pc_sigfigs;
u_int pc_slen;
u_int pc_type;
} pcaphdr_t;
#define TCPDUMP_MAGIC 0xa1b2c3d4
#define PCAP_VERSION_MAJ 2
typedef struct pcap_pkthdr {
struct timeval ph_ts;
u_int ph_clen;
u_int ph_len;
} pcappkt_t;