| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
In print-openflow-1.0.c and print-openflow-1.3.c replace the remaining
"goto invalid" checks with ND_ICHECK_U() and ND_ICHECKMSG_U(). Redo the
changes from commit 1ce16ea: use the same order of arguments and the
same comparison operators as before the change and lose the unsigned
compensation, which is no longer required. Add another test case using
a malformed packet from Francois-Xavier.
|
|
|
|
|
| |
'(void)nd_print(ndo, start, start + len)' are replaced by
'nd_printjnp(ndo, start, len)'
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce struct of_msgtypeinfo and convert all the case blocks in
of10_message_print() and of13_message_print() together with ofpt_str[]
and the associated wrapper functions into array elements of this type.
Convert the code remaining of both functions into a short generic
of_message_print() function.
Refer to the latest OpenFlow 1.3 PDF and update comments to use section
numbers from that document.
|
|
|
|
|
|
| |
Add an unused "len" argument to a number of type-specific functions so
the main message body printing functions always call the next function
with (ndo, cp, len) from uniform case blocks.
|
|
|
|
|
|
|
| |
Take the repetitive subtractions out of the main message printing
functions and make it obvious that all constants specific to message body
length include the header length. For OpenFlow 1.0 define the modified
lengths in unsigned terms in the same go.
|
|
|
|
|
|
|
| |
Move the remaining small blocks of message printing code out of
of10_message_print() and of13_message_print() into standalone functions,
this way all the case blocks in the two message body processing functions
become more uniform.
|
| |
|
|
|
|
|
| |
In that sequence of case blocks no function used length even if provided
with, so consistently do not provide the length.
|
| |
|
|
|
|
|
| |
Also add new OUIs and experimenter IDs for OFPT_EXPERIMENTER. Update
two tests.
|
|
|
|
|
|
| |
I like the ternary operator (in programming languages that define it with
the same associativity as humans tend to presume), but sometimes a lookup
function is better.
|
| |
|
|
|
|
| |
Decode the optional trailing data and update two tests.
|
|
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
|