summaryrefslogtreecommitdiff
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-07 20:41:28 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-07 20:41:28 +0000
commitf9c109a2394d2d29c7f6b37fcd1f80f6f01cedf7 (patch)
treeffa33cd9b725f0d35236a8f783404c6d324f3805 /wiretap
parent932fc437984ba22a2358c03864614bdb8f9e085e (diff)
downloadwireshark-f9c109a2394d2d29c7f6b37fcd1f80f6f01cedf7.tar.gz
Support in Wiretap for DLT_HHDLC, from Tomas Kukosa.
svn path=/trunk/; revision=4707
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/libpcap.c3
-rw-r--r--wiretap/wtap.c5
-rw-r--r--wiretap/wtap.h5
3 files changed, 9 insertions, 4 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index c77af6f9fb..05a13a64d1 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -1,6 +1,6 @@
/* libpcap.c
*
- * $Id: libpcap.c,v 1.64 2002/01/29 08:55:24 guy Exp $
+ * $Id: libpcap.c,v 1.65 2002/02/07 20:41:28 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -381,6 +381,7 @@ static const struct {
{ 118, WTAP_ENCAP_CISCO_IOS },
{ 119, WTAP_ENCAP_PRISM_HEADER }, /* Prism monitor mode hdr */
+ { 121, WTAP_ENCAP_HHDLC }, /* HiPath HDLC */
};
#define NUM_PCAP_ENCAPS (sizeof pcap_to_wtap_map / sizeof pcap_to_wtap_map[0])
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index e77644057c..b9ba2e1558 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -1,6 +1,6 @@
/* wtap.c
*
- * $Id: wtap.c,v 1.60 2002/01/29 09:45:58 guy Exp $
+ * $Id: wtap.c,v 1.61 2002/02/07 20:41:28 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -139,6 +139,9 @@ static const struct encap_type_info {
/* WTAP_ENCAP_AIROPEEK */
{ "IEEE 802.11 plus AiroPeek header", "airopeek" },
+
+ /* WTAP_ENCAP_HHDLC */
+ { "HiPath HDLC", "hhdlc" },
};
/* Name that should be somewhat descriptive. */
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index f2a71d0e02..dfc2f779d7 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1,6 +1,6 @@
/* wtap.h
*
- * $Id: wtap.h,v 1.104 2002/02/01 00:10:03 guy Exp $
+ * $Id: wtap.h,v 1.105 2002/02/07 20:41:28 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -106,9 +106,10 @@
#define WTAP_ENCAP_PRISM_HEADER 24
#define WTAP_ENCAP_PFLOG 25
#define WTAP_ENCAP_AIROPEEK 26
+#define WTAP_ENCAP_HHDLC 27
/* last WTAP_ENCAP_ value + 1 */
-#define WTAP_NUM_ENCAP_TYPES 27
+#define WTAP_NUM_ENCAP_TYPES 28
/* File types that can be read by wiretap.
We support writing some many of these file types, too, so we