]> The Tcpdump Group git mirrors - libpcap/commitdiff
Some more link-layer types, as requested by Will Barker
authorguy <guy>
Sat, 22 Dec 2007 01:20:07 +0000 (01:20 +0000)
committerguy <guy>
Sat, 22 Dec 2007 01:20:07 +0000 (01:20 +0000)
<[email protected]>.

pcap/bpf.h

index ad3cfbc6bff22e85a2cd30ca444ced59976e82eb..306d953e33518a3fbc41108bbea4480d58492bb5 100644 (file)
@@ -37,7 +37,7 @@
  *
  *      @(#)bpf.h       7.1 (Berkeley) 5/7/91
  *
- * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.19.2.1 2007-10-21 08:39:59 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.19.2.2 2007-12-22 01:20:07 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 <[email protected]>.
+ */
+#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