diff options
Diffstat (limited to 'extract.h')
-rw-r--r-- | extract.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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,12 +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); -} - /* get_u_1 and get_s_1 */ static inline uint8_t |