Add DLT_DBUS, for raw D-Bus messages.
This commit is contained in:
parent
77ed5cdd1f
commit
cbf0ba1e34
|
@ -735,6 +735,24 @@ static const char rcsid[] _U_ =
|
||||||
*/
|
*/
|
||||||
#define LINKTYPE_IEEE802_15_4_NOFCS 230
|
#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 {
|
static struct linktype_map {
|
||||||
int dlt;
|
int dlt;
|
||||||
|
@ -1084,6 +1102,9 @@ static struct linktype_map {
|
||||||
/* IEEE 802.15.4 exactly as it appears in the spec, without FCS */
|
/* IEEE 802.15.4 exactly as it appears in the spec, without FCS */
|
||||||
{ DLT_IEEE802_15_4_NOFCS, LINKTYPE_IEEE802_15_4_NOFCS },
|
{ DLT_IEEE802_15_4_NOFCS, LINKTYPE_IEEE802_15_4_NOFCS },
|
||||||
|
|
||||||
|
/* D-Bus messages */
|
||||||
|
{ DLT_DBUS, LINKTYPE_DBUS },
|
||||||
|
|
||||||
{ -1, -1 }
|
{ -1, -1 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
18
pcap/bpf.h
18
pcap/bpf.h
|
@ -969,6 +969,24 @@ struct bpf_version {
|
||||||
*/
|
*/
|
||||||
#define DLT_IEEE802_15_4_NOFCS 230
|
#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 <martin@vidner.net>.
|
||||||
|
*/
|
||||||
|
#define DLT_DBUS 231
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DLT and savefile link type values are split into a class and
|
* 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
|
* a member of that class. A class value of 0 indicates a regular
|
||||||
|
|
Reference in New Issue