aboutsummaryrefslogtreecommitdiffstats
path: root/pcap.h
diff options
context:
space:
mode:
authorguy <guy>2000-09-18 05:08:02 +0000
committerguy <guy>2000-09-18 05:08:02 +0000
commit8445a15c7ce14aae59ac13ec14d122a82291c504 (patch)
tree7006ea0aa1479d8f30ae708152537dca30ac2413 /pcap.h
parent7e461ddcbe2ab74b11d37570be3b9cac6aea0a62 (diff)
Add support for NetBSD DLT_PPP_SERIAL (PPP in HDLC-like framing, as per
RFC 1662, or Cisco point-to-point with HDLC framing, as per seciont 4.3.1 of RFC 1547; there's always an address and control octet at the beginning of these packets, but they're not necessarily 0xff 0x03), which we map to PCAP_ENCAP_PPP_HDLC.
Diffstat (limited to 'pcap.h')
-rw-r--r--pcap.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/pcap.h b/pcap.h
index cf6fcdc..1bee814 100644
--- a/pcap.h
+++ b/pcap.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.26 2000-09-17 04:04:39 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.27 2000-09-18 05:08:02 guy Exp $ (LBL)
*/
#ifndef lib_pcap_h
@@ -178,6 +178,18 @@ struct pcap_file_header {
#define PCAP_ENCAP_ATM_CLIP 106 /* Linux Classical IP over ATM */
/*
+ * PCAP_ENCAP_PPP is for use when there might, or might not, be an RFC 1662
+ * PPP in HDLC-like framing header (with 0xff 0x03 before the PPP protocol
+ * field) at the beginning of the packet.
+ *
+ * This is for use when there is always such a header; the address field
+ * might be 0xff, for regular PPP, or it might be an address field for Cisco
+ * point-to-point with HDLC framing as per section 4.3.1 of RFC 1547 ("Cisco
+ * HDLC"). This is, for example, what you get with NetBSD's DLT_PPP_SERIAL.
+ */
+#define PCAP_ENCAP_PPP_HDLC 107 /* PPP in HDLC-like framing */
+
+/*
* Each packet in the dump file is prepended with this generic header.
* This gets around the problem of different headers for different
* packet interfaces.