]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add DLT_DBUS, for raw D-Bus messages.
authorGuy Harris <[email protected]>
Mon, 15 Nov 2010 16:57:38 +0000 (08:57 -0800)
committerGuy Harris <[email protected]>
Mon, 15 Nov 2010 16:57:38 +0000 (08:57 -0800)
pcap-common.c
pcap/bpf.h

index 5f6a9294749e6a29500f68e51661e08fe7146d54..3989dfc4a1ceabcb649f97ea4b3f11825731322d 100644 (file)
@@ -735,6 +735,24 @@ static const char rcsid[] _U_ =
  */
 #define LINKTYPE_IEEE802_15_4_NOFCS            230
 
+/*
+ * Raw D-Bus:
+ *
+ *     http://www.freedesktop.org/wiki/Software/dbus
+ *
+ * messages:
+ *
+ *     http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages
+ *
+ * starting with the endianness flag, followed by the message type, etc.,
+ * but without the authentication handshake before the message sequence:
+ *
+ *     http://dbus.freedesktop.org/doc/dbus-specification.html#auth-protocol
+ *
+ * Requested by Martin Vidner <[email protected]>.
+ */
+#define LINKTYPE_DBUS                          231
+
 
 static struct linktype_map {
        int     dlt;
@@ -1084,6 +1102,9 @@ static struct linktype_map {
        /* IEEE 802.15.4 exactly as it appears in the spec, without FCS */
        { DLT_IEEE802_15_4_NOFCS, LINKTYPE_IEEE802_15_4_NOFCS },
 
+       /* D-Bus messages */
+       { DLT_DBUS,             LINKTYPE_DBUS },
+
        { -1,                   -1 }
 };
 
index 6048fff9c4c9f26ab4d82912e1c658639d1abe91..9b662b96be630f190a637632e07e9682d4dd4cfb 100644 (file)
@@ -969,6 +969,24 @@ struct bpf_version {
  */
 #define DLT_IEEE802_15_4_NOFCS         230
 
+/*
+ * Raw D-Bus:
+ *
+ *     http://www.freedesktop.org/wiki/Software/dbus
+ *
+ * messages:
+ *
+ *     http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages
+ *
+ * starting with the endianness flag, followed by the message type, etc.,
+ * but without the authentication handshake before the message sequence:
+ *
+ *     http://dbus.freedesktop.org/doc/dbus-specification.html#auth-protocol
+ *
+ * Requested by Martin Vidner <[email protected]>.
+ */
+#define DLT_DBUS                       231
+
 /*
  * 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