]> The Tcpdump Group git mirrors - tcpdump/commit
Fail if nd_push_buffer() or nd_push_snaplen() fails.
authorGuy Harris <[email protected]>
Fri, 1 Apr 2022 22:28:33 +0000 (15:28 -0700)
committerGuy Harris <[email protected]>
Sat, 2 Apr 2022 00:23:23 +0000 (17:23 -0700)
commit0a7b2e9975677473b51c77b1cd41a93ff06efeba
tree3939014fe6abb9e69675ecc2bb3a1cb148a100f7
parentfe9b593bac67c5485579ab89f21dd9e4490799fc
Fail if nd_push_buffer() or nd_push_snaplen() fails.

Always call ndo->ndo_error with a memory-allocation error if they fail.

Add WARN_UNUSED_RESULT for compilers that support it, and use it for
those routines, so that any future code that doesn't check for failure
gets a warning.

(cherry picked from commit e84f58700fe17ee5c4680247fcdcf506ff38587d)
funcattrs.h
netdissect.h
print-esp.c
print-ether.c
print-ip.c
print-ip6.c