]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ipfilter/pcap.h
This commit was generated by cvs2svn to compensate for changes in r54816,
[FreeBSD/FreeBSD.git] / contrib / ipfilter / pcap.h
1 /*
2  * Copyright (C) 1993-1998 by Darren Reed.
3  *
4  * Redistribution and use in source and binary forms are permitted
5  * provided that this notice is preserved and due credit is given
6  * to the original author and the contributors.
7  * $Id: pcap.h,v 2.1 1999/08/04 17:30:17 darrenr Exp $
8  */
9 /*
10  * This header file is constructed to match the version described by
11  * PCAP_VERSION_MAJ.
12  *
13  * The structure largely derives from libpcap which wouldn't include
14  * nicely without bpf.
15  */
16 typedef struct  pcap_filehdr    {
17         u_int   pc_id;
18         u_short pc_v_maj;
19         u_short pc_v_min;
20         u_int   pc_zone;
21         u_int   pc_sigfigs;
22         u_int   pc_slen;
23         u_int   pc_type;
24 } pcaphdr_t;
25
26 #define TCPDUMP_MAGIC           0xa1b2c3d4
27
28 #define PCAP_VERSION_MAJ        2
29
30 typedef struct  pcap_pkthdr     {
31         struct  timeval ph_ts;
32         u_int   ph_clen;
33         u_int   ph_len;
34 } pcappkt_t;
35