]> The Tcpdump Group git mirrors - tcpdump/commit
OpenFlow: Add an overshoot guard back.
authorDenis Ovsienko <[email protected]>
Sun, 27 Sep 2020 19:24:13 +0000 (20:24 +0100)
committerDenis Ovsienko <[email protected]>
Sun, 27 Sep 2020 19:36:14 +0000 (20:36 +0100)
commit2e63bc0ec11f2b041ee53e2ed986c9d50f135700
treef7c736072b7be64c2c1ad4525f72cc0f91fdffd6
parent27b4644aec373bec46d26d08a9d16891855d2083
OpenFlow: Add an overshoot guard back.

In openflow_print() terminate the loop if the downstream code managed
to run off the TCP payload end without running off the packet buffer
end (that's how the pointers worked before commit ad69daa2, but I got
the recent conversion to a decrementing unsigned length wrong in commit
4e2e9c24). Expand the comment further.

Declare OF_HEADER_FIXLEN as unsigned to squelch a signedness warning.
openflow.h
print-openflow.c