]> The Tcpdump Group git mirrors - tcpdump/blobdiff - netdissect.c
Update some tests files if the packet time is > 2038-01-19 03:14:07 UTC
[tcpdump] / netdissect.c
index 000d1ffce8c2c6eb9a47f36e9a79e0b5ec2b258e..93e633a6af93e093c7a2a0f19ac4993a77dd066e 100644 (file)
@@ -299,3 +299,17 @@ nd_pop_all_packet_info(netdissect_options *ndo)
        while (ndo->ndo_packet_info_stack != NULL)
                nd_pop_packet_info(ndo);
 }
+
+NORETURN void
+nd_trunc_longjmp(netdissect_options *ndo)
+{
+       longjmp(ndo->ndo_early_end, ND_TRUNCATED);
+#ifdef _AIX
+       /*
+        * In AIX <setjmp.h> 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.
+        */
+       ND_UNREACHABLE
+#endif /* _AIX */
+}