mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2025-01-08 00:38:23 +08:00
1ce16ea577
For OFPT_PACKET_OUT print "actions_len", as it is a part of the message and should appear in its decoding (in other message types it is derived from the message length). ND_ICHECK_*() in of10_actions_print(), of10_flow_stats_reply_print() and of10_packet_out_print() after printing at least some of the output. This, compared to just "(invalid) (invalid)", makes it much easier to understand where and why the packet data was not fully decoded. Define OF_ACTION_MINLEN unsigned to squelch the induced compiler warnings. A number of similar checks still remain to be converted the same way.
912 B
912 B