]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix a typo.
authorguy <guy>
Mon, 18 Feb 2008 20:21:00 +0000 (20:21 +0000)
committerguy <guy>
Mon, 18 Feb 2008 20:21:00 +0000 (20:21 +0000)
Add some new link-layer types for automotive buses, as requested by
Hannes Kaelber.

pcap/bpf.h
savefile.c

index 10b77594ebed3d2b62b2144ee602cf07953bc944..50473f8efb55e4f145e72693137e25399ba0014c 100644 (file)
@@ -37,7 +37,7 @@
  *
  *      @(#)bpf.h       7.1 (Berkeley) 5/7/91
  *
- * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.23 2008-01-02 04:16:46 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.24 2008-02-18 20:21:00 guy Exp $ (LBL)
  */
 
 /*
@@ -772,13 +772,33 @@ struct bpf_version {
  * type, as requested by Will Barker.
  */
 
-
 /*
- * IPMB with a Linux-specific pseudo-header; as equested by Alexey Neyman
+ * IPMB with a Linux-specific pseudo-header; as requested by Alexey Neyman
  */
 #define DLT_IPMB_LINUX         209
 
+/*
+ * FlexRay automotive bus - http://www.flexray.com/ - as requested
+ * by Hannes Kaelber <[email protected]>.
+ */
+#define DLT_FLEXRAY            210
+
+/*
+ * Media Oriented Systems Transport (MOST) bus for multimedia
+ * transport - http://www.mostcooperation.com/ - as requested
+ * by Hannes Kaelber <[email protected]>.
+ */
+#define DLT_MOST               211
+
+/*
+ * Local Interconnect Network (LIN) bus for vehicle networks -
+ * http://www.lin-subbus.org/ - as requested by Hannes Kaelber
+ */
+#define DLT_LIN                        212
+
+
 /*
  * DLT and savefile link type values are split into a class and
  * a member of that class.  A class value of 0 indicates a regular
index e330a1d24bed22f0195a3f395bcd7f14759d9797..f62502e9bf5e309733aa295195a64714a2adce42 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.171 2007-12-23 04:40:45 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.172 2008-02-18 20:21:00 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -597,13 +597,32 @@ static const char rcsid[] _U_ =
  * type, as requested by Will Barker.
  */
 
-
 /*
- * IPMB with a Linux-specific pseudo-header; as equested by Alexey Neyman
+ * IPMB with a Linux-specific pseudo-header; as requested by Alexey Neyman
  */
 #define LINKTYPE_IPMB_LINUX            209
 
+/*
+ * FlexRay automotive bus - http://www.flexray.com/ - as requested
+ * by Hannes Kaelber <[email protected]>.
+ */
+#define LINKTYPE_FLEXRAY               210
+
+/*
+ * Media Oriented Systems Transport (MOST) bus for multimedia
+ * transport - http://www.mostcooperation.com/ - as requested
+ * by Hannes Kaelber <[email protected]>.
+ */
+#define LINKTYPE_MOST                  211
+
+/*
+ * Local Interconnect Network (LIN) bus for vehicle networks -
+ * http://www.lin-subbus.org/ - as requested by Hannes Kaelber
+ */
+#define LINKTYPE_LIN                   212
+
 
 static struct linktype_map {
        int     dlt;
@@ -891,6 +910,15 @@ static struct linktype_map {
        /* IPMB with Linux pseudo-header */
        { DLT_IPMB_LINUX,       LINKTYPE_IPMB_LINUX },
 
+       /* FlexRay */
+       { DLT_FLEXRAY,          LINKTYPE_FLEXRAY },
+
+       /* MOST */
+       { DLT_MOST,             LINKTYPE_MOST },
+
+       /* LIN */
+       { DLT_LIN,              LINKTYPE_LIN },
+
        { -1,                   -1 }
 };