summaryrefslogtreecommitdiff
path: root/print-openflow.c
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2020-09-27 23:17:56 +0100
committerDenis Ovsienko <denis@ovsienko.info>2020-09-28 13:58:12 +0100
commitbdac249ee0574f1aa187fc406cec9f61c775f9da (patch)
tree37409076c02d7a9a32c47714f1f1b4256d60a385 /print-openflow.c
parentafb9acd6bcbfc37d6977ac850e422f7374a69684 (diff)
downloadtcpdump-bdac249ee0574f1aa187fc406cec9f61c775f9da.tar.gz
OpenFlow 1.3: Add initial partial support.
This code processes only the simplest message types (9 out of the 30 defined). Add a test from [1], which comes from [2], which comes from a contributor in Ericsson (Zoltán Lajos Kis). 1: https://wiki.wireshark.org/SampleCaptures#OpenFlow 2: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9283
Diffstat (limited to 'print-openflow.c')
-rw-r--r--print-openflow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/print-openflow.c b/print-openflow.c
index fcc95259..d56f704b 100644
--- a/print-openflow.c
+++ b/print-openflow.c
@@ -124,6 +124,10 @@ openflow_print(netdissect_options *ndo, const u_char *cp, u_int len)
ND_PRINT(", type %s", of10_msgtype_str(type));
decoder = of10_message_print;
break;
+ case OF_VER_1_3:
+ ND_PRINT(", type %s", of13_msgtype_str(type));
+ decoder = of13_message_print;
+ break;
default:
ND_PRINT(", type unknown (0x%02x)", type);
}