summaryrefslogtreecommitdiff
path: root/openflow.h
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2014-12-11 23:49:30 +0000
committerDenis Ovsienko <denis@ovsienko.info>2014-12-13 18:06:04 +0000
commit94b4c01e1d866fe1132839c3ad2027380e6754bd (patch)
tree7506f3b284837b44e4301974e601bee2a74bcf8c /openflow.h
parent3a5ebe0ed5467879c498789e9505ebe598ec0611 (diff)
downloadtcpdump-94b4c01e1d866fe1132839c3ad2027380e6754bd.tar.gz
OpenFlow: add vendor name printing
The new function goes into print-openflow.c as vendor name decoding is the same in all versions of OpenFlow (although in 1.0 it is "vendor" and in subsequent versions it is "experimenter"). The mapping is from: https://rs.opennetworking.org/wiki/display/PUBLIC/ONF+Registry
Diffstat (limited to 'openflow.h')
-rw-r--r--openflow.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/openflow.h b/openflow.h
index d330f1ec..31ef03c4 100644
--- a/openflow.h
+++ b/openflow.h
@@ -32,9 +32,20 @@
#define OF_HEADER_LEN 8
+#define ONF_EXP_ONF 0x4f4e4600
+#define ONF_EXP_BUTE 0xff000001
+#define ONF_EXP_NOVIFLOW 0xff000002
+#define ONF_EXP_L3 0xff000003
+#define ONF_EXP_L4L7 0xff000004
+#define ONF_EXP_WMOB 0xff000005
+#define ONF_EXP_FABS 0xff000006
+#define ONF_EXP_OTRANS 0xff000007
+extern const struct tok onf_exp_str[];
+
/*
* Routines to print packets for various versions of OpenFlow.
*/
extern const u_char *of10_header_body_print(netdissect_options *ndo,
const u_char *, const u_char *,
const uint8_t, const uint16_t, const uint32_t);
+extern const char * of_vendor_name(const uint32_t);