diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-11-15 08:57:38 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-11-15 08:57:38 -0800 |
commit | cbf0ba1e349271898225e77628c16cb04457c1b9 (patch) | |
tree | 33608b75a93be393f996fef1b76fc59245f3c20a /pcap-common.c | |
parent | 77ed5cdd1f218377524830b0cee868bdbdb7aae2 (diff) |
Add DLT_DBUS, for raw D-Bus messages.
Diffstat (limited to 'pcap-common.c')
-rw-r--r-- | pcap-common.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pcap-common.c b/pcap-common.c index 5f6a929..3989dfc 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -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 <martin@vidner.net>. + */ +#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 } }; |