]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-common.c
Give more details for the _WITH_DIR types.
[libpcap] / pcap-common.c
index 12ed4dbb03e93e6fa728aa1a6ae52c4ecbb5e176..8b7ffa5264823c648127973d0d2cb5dfb385a2ad 100644 (file)
  */
 #define LINKTYPE_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]>.
+ * PPP, 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 LINKTYPE_PPP_WITH_DIR  204     /* Don't confuse with LINKTYPE_PPP_PPPD */
+
+/*
+ * Cisco HDLC, 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 LINKTYPE_PPP_WITH_DIR  204     /* PPP */
 #define LINKTYPE_C_HDLC_WITH_DIR 205   /* Cisco HDLC */
+
+/*
+ * Frame Relay, with a one-byte direction pseudo-header prepended - zero
+ * means "received by this host" (DCE -> DTE), non-zero (any non-zero
+ * value) means "sent by this host" (DTE -> DCE) - as per Will Barker
+ */
 #define LINKTYPE_FRELAY_WITH_DIR 206   /* Frame Relay */
+
+/*
+ * LAPB, with a one-byte direction pseudo-header prepended - zero means
+ * "received by this host" (DCE -> DTE), non-zero (any non-zero value)
+ * means "sent by this host" (DTE -> DCE)- as per Will Barker
+ */
 #define LINKTYPE_LAPB_WITH_DIR 207     /* LAPB */
 
 /*