]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - pcap-ipf.h
In preparation for the upcoming ipfilter vendor code import,
[FreeBSD/FreeBSD.git] / pcap-ipf.h
1 /*
2  * Copyright (C) 1993-2001 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  */
7 /*
8  * This header file is constructed to match the version described by
9  * PCAP_VERSION_MAJ.
10  *
11  * The structure largely derives from libpcap which wouldn't include
12  * nicely without bpf.
13  */
14 typedef struct  pcap_filehdr    {
15         u_int   pc_id;
16         u_short pc_v_maj;
17         u_short pc_v_min;
18         u_int   pc_zone;
19         u_int   pc_sigfigs;
20         u_int   pc_slen;
21         u_int   pc_type;
22 } pcaphdr_t;
23
24 #define TCPDUMP_MAGIC           0xa1b2c3d4
25
26 #define PCAP_VERSION_MAJ        2
27
28 typedef struct  pcap_pkthdr     {
29         struct  timeval ph_ts;
30         u_int   ph_clen;
31         u_int   ph_len;
32 } pcappkt_t;
33