1998-11-22 17:21:44 +03:00
|
|
|
/* $NetBSD: pcap.h,v 1.1.1.8 1998/11/22 14:21:48 mrg Exp $ */
|
1997-05-28 02:16:47 +04:00
|
|
|
|
1997-01-05 16:06:38 +03:00
|
|
|
/*
|
1998-11-22 17:21:44 +03:00
|
|
|
* Copyright (C) 1993-1998 by Darren Reed.
|
1997-01-05 16:06:38 +03:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms are permitted
|
|
|
|
* provided that this notice is preserved and due credit is given
|
|
|
|
* to the original author and the contributors.
|
1998-11-22 17:21:44 +03:00
|
|
|
* Id: pcap.h,v 2.0.2.4.2.1 1998/11/22 01:50:42 darrenr Exp
|
1997-01-05 16:06:38 +03:00
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* 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;
|
|
|
|
|