Add support for dissecting SLL type 0x0C frames.
svn path=/trunk/; revision=34991
{ LINUX_SLL_P_ETHERNET, "Ethernet" },
{ LINUX_SLL_P_802_2, "802.2 LLC" },
{ LINUX_SLL_P_PPPHDLC, "PPP (HDLC)" },
+ { LINUX_SLL_P_CAN, "CAN" },
{ 0, NULL }
};
#define LINUX_SLL_P_ETHERNET 0x0003 /* Ethernet */
#define LINUX_SLL_P_802_2 0x0004 /* 802.2 frames (not D/I/X Ethernet) */
#define LINUX_SLL_P_PPPHDLC 0x0007 /* PPP HDLC frames */
+#define LINUX_SLL_P_CAN 0x000C /* Controller Area Network */
void capture_sll(const guchar *, int, packet_counts *);
#include <glib.h>
#include <epan/packet.h>
+#include "packet-sll.h"
/* controller area network (CAN) kernel definitions
* This maskare usualy defined within <linux/can.h> but not
can_handle = create_dissector_handle(dissect_socketcan, proto_can);
dissector_add("wtap_encap", WTAP_ENCAP_SOCKETCAN, can_handle);
+ dissector_add("sll.ltype", LINUX_SLL_P_CAN, can_handle);
}