summaryrefslogtreecommitdiff
path: root/linktype.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-04-14 22:17:37 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-04-14 22:17:37 +0200
commite70e915c9e7f9418e483b87ae72176e4b2562bb6 (patch)
treef7e21bdd60c500f37f02f993b666e50e9c485d19 /linktype.h
parenta0e49fe80ba94071e4019edc5bbb128e0db1ec35 (diff)
dissector: Get rid of header dependency on pcap_io.h
The dissector only needs the LINKTYPE_* #defines from pcap_io.h. Instead of pulling in this rather large header just for this, move the LINKTYPE_* #defines to an own header and include it where needed. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'linktype.h')
-rw-r--r--linktype.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/linktype.h b/linktype.h
new file mode 100644
index 0000000..8caa697
--- /dev/null
+++ b/linktype.h
@@ -0,0 +1,33 @@
+/*
+ * netsniff-ng - the packet sniffing beast
+ * Copyright 2009 - 2013 Daniel Borkmann.
+ * Subject to the GPL, version 2.
+ */
+
+#ifndef LINKTYPE_H
+#define LINKTYPE_H
+
+#define LINKTYPE_NULL 0
+#define LINKTYPE_EN10MB 1
+#define LINKTYPE_EN3MB 2
+#define LINKTYPE_AX25 3
+#define LINKTYPE_PRONET 4
+#define LINKTYPE_CHAOS 5
+#define LINKTYPE_IEEE802 6
+#define LINKTYPE_SLIP 8
+#define LINKTYPE_PPP 9
+#define LINKTYPE_FDDI 10
+#define LINKTYPE_ATM_CLIP 19
+#define LINKTYPE_C_HDLC 104
+#define LINKTYPE_IEEE802_11 105
+#define LINKTYPE_FRELAY 107
+#define LINKTYPE_ECONET 115
+#define LINKTYPE_ARCNET_LINUX 129
+#define LINKTYPE_LINUX_IRDA 144
+#define LINKTYPE_CAN20B 190
+#define LINKTYPE_IEEE802_15_4_LINUX 191
+#define LINKTYPE_INFINIBAND 247
+#define LINKTYPE_NETLINK 253
+#define LINKTYPE_MAX 254
+
+#endif