diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2014-12-11 23:49:30 +0000 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2014-12-13 18:06:04 +0000 |
commit | 94b4c01e1d866fe1132839c3ad2027380e6754bd (patch) | |
tree | 7506f3b284837b44e4301974e601bee2a74bcf8c /openflow.h | |
parent | 3a5ebe0ed5467879c498789e9505ebe598ec0611 (diff) | |
download | tcpdump-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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); |