From 2fcbb1f5a2ce49185544f79729dc431b899a7a47 Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 22 Dec 2007 01:19:12 +0000 Subject: [PATCH] Some more link-layer types, as requested by Will Barker . --- pcap/bpf.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pcap/bpf.h b/pcap/bpf.h index eec8b37..9d02203 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -37,7 +37,7 @@ * * @(#)bpf.h 7.1 (Berkeley) 5/7/91 * - * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.20 2007-10-21 08:39:27 guy Exp $ (LBL) + * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.21 2007-12-22 01:19:12 guy Exp $ (LBL) */ /* @@ -757,6 +757,22 @@ struct bpf_version { */ #define DLT_LAPD 203 +/* + * Variants of various link-layer headers, with a one-byte direction + * pseudo-header prepended - zero means "received by this host", + * non-zero (any non-zero value) means "sent by this host" - as per + * Will Barker . + */ +#define DLT_PPP_WITH_DIR 204 /* PPP - don't confuse with DLT_PPP_WITH_DIRECTION */ +#define DLT_C_HDLC_WITH_DIR 205 /* Cisco HDLC */ +#define DLT_FRELAY_WITH_DIR 206 /* Frame Relay */ +#define DLT_LAPB_WITH_DIR 207 /* LAPB */ + +/* + * 208 is reserved for an as-yet-unspecified proprietary link-layer + * type, as requested by Will Barker. + */ + /* * DLT and savefile link type values are split into a class and