X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b7401ffd865af51060604b7eb76ff593397293d6..a63600a1fc28dbc7ae7ce9f996829c49a25fb33c:/extract.h diff --git a/extract.h b/extract.h index 510b4a15..d7d803df 100644 --- a/extract.h +++ b/extract.h @@ -37,6 +37,7 @@ */ #include "funcattrs.h" #include "netdissect.h" +#include "diag-control.h" /* * If we have versions of GCC or Clang that support an __attribute__ @@ -148,7 +149,7 @@ EXTRACT_IPV4_TO_HOST_ORDER(const void *p) * cast the pointer to point to one of those, and fetch through it; * the GCC manual doesn't appear to explicitly say that * __attribute__((packed)) causes the compiler to generate unaligned-safe - * code, but it apppears to do so. + * code, but it appears to do so. * * We do this in case the compiler can generate code using those * instructions to do an unaligned load and pass stuff to "ntohs()" or @@ -575,20 +576,6 @@ EXTRACT_IPV4_TO_NETWORK_ORDER(const void *p) #define ND_TTEST_16(p) ND_TTEST_LEN((p), 16) #define ND_TCHECK_16(p) ND_TCHECK_LEN((p), 16) -static inline NORETURN void -nd_trunc_longjmp(netdissect_options *ndo) -{ - longjmp(ndo->ndo_early_end, ND_TRUNCATED); -#ifdef _AIX - /* - * In AIX decorates longjmp() with "#pragma leaves", which tells - * XL C that the function is noreturn, but GCC remains unaware of that and - * yields a "'noreturn' function does return" warning. - */ - while (1); -#endif /* _AIX */ -} - /* get_u_1 and get_s_1 */ static inline uint8_t