]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up handling of different packet types.
authorGuy Harris <[email protected]>
Tue, 10 Jul 2018 08:01:15 +0000 (01:01 -0700)
committerGuy Harris <[email protected]>
Wed, 21 Nov 2018 22:31:20 +0000 (14:31 -0800)
commitfb61c561b8b1fe0894deed14cf6f30dfe385350b
tree1fde81e58072c7fd8a786b507c092bec5f70a39f
parent5a5ac77f358deb7239a51d22fd01e4cea1818077
 Clean up handling of different packet types.

Only look at the header for control packets; we don't know what the
payload contains for other packet types.

This fixes some cases where we fail to check whether we have a full
header before fetching from the header - we only need to fetch from the
header for control packets, so we now only need to check that we have it
for control packets; make sure we *don't* look at the header for other
packet types.

Update the v0 code to match draft-ietf-bfd-base-01, which was the last
draft that discussed v0.

(backported from commit a3fa8638e8cfa36b2579c529c0742d310d003db3)
print-bfd.c