#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.
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}