Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ipf / pcap-ipf.h
bloba6b974c5413f1266d528817cd69700f9ef29d296
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 1993-2001 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 */
9 /*
10 * This header file is constructed to match the version described by
11 * PCAP_VERSION_MAJ.
13 * The structure largely derives from libpcap which wouldn't include
14 * nicely without bpf.
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;
26 #define TCPDUMP_MAGIC 0xa1b2c3d4
28 #define PCAP_VERSION_MAJ 2
30 typedef struct pcap_pkthdr {
31 struct timeval ph_ts;
32 u_int ph_clen;
33 u_int ph_len;
34 } pcappkt_t;