summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2013-05-21 20:46:54 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2013-05-29 13:03:23 +0400
commitfd35562d7e7153a339fdcdd02408f877e34a49fb (patch)
tree55c36152059262aadb3366b179db2c0e11b1bb40 /interface.h
parentceeea959186033c8fbcbed7a3626e5e612b9c133 (diff)
downloadtcpdump-fd35562d7e7153a339fdcdd02408f877e34a49fb.tar.gz
add OpenFlow 1.0 decoder (no SSL)
The new file openflow-1.0.h is a verbatim copy of the file openflow.h from the openflow-1.0.0.tar.gz distribution. The new file print-openflow-1.0.c contains a set of functions for OpenFlow 1.0 (wire protocol 0x01) decoding. Of these functions only of10_header_body_print() is exported and used by the minimal OpenFlow decoder. It is intended that future (1.1, 1.2, 1.3.0) OpenFlow version decoders are implemented the same way (in modules of their own), since different versions of OpenFlow specification reuse the same symbols for different numeric values. This way, print-openflow-1.1.c would include openflow-1.1.h and so on. The new test case "of10_p3295-vv" was produced using a Pica8 P-3295 switch and Trema controller running a purpose-built sample application.
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/interface.h b/interface.h
index 5c598e6c..1d461244 100644
--- a/interface.h
+++ b/interface.h
@@ -224,6 +224,8 @@ extern const u_char * ns_nprint (register const u_char *, register const u_char
extern void ntp_print(const u_char *, u_int);
extern u_int null_if_print(const struct pcap_pkthdr *, const u_char *);
extern void openflow_print(const u_char *, u_int);
+extern const u_char *of10_header_body_print(const u_char *, const u_char *,
+ const uint8_t, const uint16_t, const uint32_t);
extern void ospf_print(const u_char *, u_int, const u_char *);
extern void olsr_print (const u_char *, u_int, int);
extern void pimv1_print(const u_char *, u_int);