#include <string.h>
+#define ND_LONGJMP_FROM_TCHECK
#include "netdissect.h"
#include "addrtoname.h"
#include "ethertype.h"
pro = ATMPRO(ap);
op = ATMOP(ap);
- if (!ND_TTEST_LEN(aar_tpa(ap), ATMTPROTO_LEN(ap))) {
- nd_print_trunc(ndo);
- ND_DEFAULTPRINT((const u_char *)ap, length);
- return;
- }
+ ND_TCHECK_LEN(ATMTPA(ap), ATMTPROTO_LEN(ap));
if (!ndo->ndo_eflag) {
ND_PRINT("ARP, ");
out:
ND_PRINT(", length %u", length);
- return;
-
-trunc:
- nd_print_trunc(ndo);
}
void
break;
}
- if (!ND_TTEST_LEN(TPA(ap), PROTO_LEN(ap))) {
- nd_print_trunc(ndo);
- ND_DEFAULTPRINT((const u_char *)ap, length);
- return;
- }
+ ND_TCHECK_LEN(TPA(ap), PROTO_LEN(ap));
if (!ndo->ndo_eflag) {
ND_PRINT("ARP, ");
out:
ND_PRINT(", length %u", length);
-
- return;
-trunc:
- nd_print_trunc(ndo);
}