]> The Tcpdump Group git mirrors - libpcap/commitdiff
DLT_ value and capture file header LINKTYPE_ value reserved for Apple
authorguy <guy>
Tue, 5 Jun 2001 03:09:39 +0000 (03:09 +0000)
committerguy <guy>
Tue, 5 Jun 2001 03:09:39 +0000 (03:09 +0000)
LocalTalk hardware.

bpf/net/bpf.h
savefile.c

index 9244fd3683976a29456fafa6b64208063dc76a6c..80c3ea519c54c4fe8b0e6867e27af5e17d1abd09 100644 (file)
@@ -37,7 +37,7 @@
  *
  *      @(#)bpf.h       7.1 (Berkeley) 5/7/91
  *
- * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.45 2001-04-17 08:10:02 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.46 2001-06-05 03:09:40 guy Exp $ (LBL)
  */
 
 #ifndef BPF_MAJOR_VERSION
@@ -276,6 +276,11 @@ struct bpf_hdr {
  */
 #define DLT_LINUX_SLL  113
 
+/*
+ * Apple LocalTalk hardware.
+ */
+#define DLT_LTALK      114
+
 /*
  * The instruction encodings.
  */
index f1ab7493524d80a108269264c402b9c86c986e75..a4987f6285cb465614b3d625c5fe54a3484c0d9d 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.50 2001-04-17 08:10:01 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.51 2001-06-05 03:09:39 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -171,6 +171,8 @@ static const char rcsid[] =
 
 #define LINKTYPE_LINUX_SLL     113             /* Linux cooked socket capture */
 
+#define LINKTYPE_LTALK         114             /* Apple LocalTalk hardware */
+
 static struct linktype_map {
        int     dlt;
        int     linktype;
@@ -230,6 +232,9 @@ static struct linktype_map {
        /* Linux cooked socket capture */
        { DLT_LINUX_SLL,        LINKTYPE_LINUX_SLL },
 
+       /* Apple LocalTalk hardware */
+       { DLT_LTALK,            LINKTYPE_LTALK },
+
        /*
         * Any platform that defines additional DLT_* codes should:
         *