]> The Tcpdump Group git mirrors - tcpdump/blobdiff - addrtoname.h
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / addrtoname.h
index 8a262aa7a61a1d75f9d2cc7c466a4cd6b41da9e1..597f4e1edcf0d3b25302d1faa504b552f3a6b6c2 100644 (file)
 
 #include "extract.h"
 
+#ifdef HAVE_CASPER
+#include <libcasper.h>
+extern cap_channel_t *capdns;
+#endif
+
 /*
  * Definition to let us compile most of the IPv6 code even on systems
  * without IPv6 support.
@@ -68,7 +73,7 @@ get_linkaddr_string(netdissect_options *ndo, const uint8_t *p,
     const unsigned int type, const unsigned int len)
 {
         if (!ND_TTEST_LEN(p, len))
-                longjmp(ndo->ndo_truncated, 1);
+                nd_trunc_longjmp(ndo);
         return linkaddr_string(ndo, p, type, len);
 }
 
@@ -76,7 +81,7 @@ static inline const char *
 get_etheraddr_string(netdissect_options *ndo, const uint8_t *p)
 {
         if (!ND_TTEST_LEN(p, MAC_ADDR_LEN))
-                longjmp(ndo->ndo_truncated, 1);
+                nd_trunc_longjmp(ndo);
         return etheraddr_string(ndo, p);
 }
 
@@ -84,7 +89,7 @@ static inline const char *
 get_le64addr_string(netdissect_options *ndo, const u_char *p)
 {
         if (!ND_TTEST_8(p))
-                longjmp(ndo->ndo_truncated, 1);
+                nd_trunc_longjmp(ndo);
         return le64addr_string(ndo, p);
 }
 
@@ -93,7 +98,7 @@ get_isonsap_string(netdissect_options *ndo, const uint8_t *nsap,
     u_int nsap_length)
 {
        if (!ND_TTEST_LEN(nsap, nsap_length))
-                longjmp(ndo->ndo_truncated, 1);
+                nd_trunc_longjmp(ndo);
         return isonsap_string(ndo, nsap, nsap_length);
 }
 
@@ -101,7 +106,7 @@ static inline const char *
 get_ipaddr_string(netdissect_options *ndo, const u_char *p)
 {
         if (!ND_TTEST_4(p))
-                longjmp(ndo->ndo_truncated, 1);
+                nd_trunc_longjmp(ndo);
         return ipaddr_string(ndo, p);
 }
 
@@ -109,7 +114,7 @@ static inline const char *
 get_ip6addr_string(netdissect_options *ndo, const u_char *p)
 {
         if (!ND_TTEST_16(p))
-                longjmp(ndo->ndo_truncated, 1);
+                nd_trunc_longjmp(ndo);
         return ip6addr_string(ndo, p);
 }