]> The Tcpdump Group git mirrors - tcpdump/commit
Introduce and use ND_LONGJMP_FROM_TCHECK.
authorDenis Ovsienko <[email protected]>
Sun, 27 Sep 2020 20:43:16 +0000 (21:43 +0100)
committerDenis Ovsienko <[email protected]>
Sun, 27 Sep 2020 20:45:46 +0000 (21:45 +0100)
commit424961546a4e32086ff7e431794173a2d0901469
tree989f8f484f953f97a6cdc7f8881fb4b71abd26d9
parent2e63bc0ec11f2b041ee53e2ed986c9d50f135700
Introduce and use ND_LONGJMP_FROM_TCHECK.

Apply this to the 4 the recently converted protocols.

HOW TO USE:

Define this in a print-*.c file before including netdissect.h to make
all its ND_TCHECK*() instances longjmp(). Only do this after verifying
that every ND_TCHECK*() in the file is correct and that in every
possible case it is safe to call longjmp() without incurring resource
leaks or any other problems. If it is not safe or feasible to convert
whole file, consider converting one function at a time.
netdissect.h
print-ahcp.c
print-aoe.c
print-loopback.c
print-openflow-1.0.c
print-openflow.c