summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-ofp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* OpenFlow 1.3 defines packet header patterns of interest using TLVs (OXMs)akoshibe2019-11-271-88/+38
| | | | | | | | | | | | | that represent various header fields. One place where OXMs are used is in the sef_field action, which contains one OXM representing the header field to set, followed by padding to align the action in the OpenFlow message to 64 bits. Currently, we assume that a set_field action can contain multiple OXMs and that they do not need to be padded. This matches the way we handle OpenFlow messages that contain set_field actions so that we follow the specs. OK ori claudio
* ether_ntoa -> etheraddr_string, like elsewhere in tcpdumpjca2016-11-281-7/+3
| | | | openflow part tested by rzalamena@, ok deraadt@
* Fix some bad copy paste bits and simplify the ethernet printing function.rzalamena2016-11-251-14/+8
| | | | ok reyk@
* Fix OFP spelling for version bitmap define in ofp header and tcpdump, alsorzalamena2016-11-221-3/+3
| | | | | | change the truncation message in hello with the standard one. ok reyk@
* Extend the DLT_OPENFLOW header to include the switch datapath id.reyk2016-11-201-8/+9
| | | | OK rzalamena@
* Add support for printing the missing OpenFlow set-queue action.rzalamena2016-11-181-2/+17
|
* Don't print the field 'actions' on features reply, because in the newrzalamena2016-11-181-3/+3
| | | | OpenFlow 1.3.5 it is a reserved field that is not being used.
* miss_send_len can also be a CONTROLLER_MAXLEN string not just a number.reyk2016-11-181-3/+5
| | | | Requested by rzalamena@
* Updates tcpdump's OpenFlow printer to use the string maps from switchdreyk2016-11-181-86/+129
| | | | | | (manually synced). Also make the output a bit more like other printers. OK rzalamena@
* Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),reyk2016-11-161-9/+45
| | | | | | | | eg. tcpdump -y openflow -i switch0 Includes a minor bump for libpcap. Feedback and OK rzalamena@
* Add missing OpenBSD keyword in the first line.rzalamena2016-10-251-1/+1
|
* Teach tcpdump(8) how to read OpenFlow packets. This initial implementationrzalamena2016-10-221-0/+1166
supports the following message types: hello, error, echo request/reply, feature request/reply, set config, packet-in, packet-out, flow removed and flow mod. We currently only support printing this messages for OpenFlow 1.3.5, however it is possible to reuse some functions and get other versions working too. ok deraadt@