#include "netdissect-stdinc.h"
+#define ND_LONGJMP_FROM_TCHECK
#include "netdissect.h"
#include "extract.h"
#include "ethertype.h"
u_short ether_type;
ndo->ndo_protocol = "symantec";
- if (caplen < sizeof (struct symantec_header)) {
- ndo->ndo_ll_header_length += caplen;
- nd_print_trunc(ndo);
- return;
- }
+ ND_TCHECK_LEN(p, sizeof(struct symantec_header));
- ndo->ndo_ll_header_length += sizeof (struct symantec_header);
+ ndo->ndo_ll_hdr_len += sizeof (struct symantec_header);
if (ndo->ndo_eflag)
symantec_hdr_print(ndo, p, length);
if (!ndo->ndo_suppress_default_print)
ND_DEFAULTPRINT(p, caplen);
}
-
- return;
}