#include <string.h>
+#define ND_LONGJMP_FROM_TCHECK
#include "netdissect.h"
#include "addrtoname.h"
#include "extract.h"
}
ndo->ndo_ll_hdr_len += l2info.header_len;
- return;
-
-trunc:
- nd_print_trunc(ndo);
- ndo->ndo_ll_hdr_len += l2info.header_len;
}
#endif
ip_print(ndo, p, l2info.length);
ndo->ndo_ll_hdr_len += l2info.header_len;
- return;
-
-trunc:
- nd_print_trunc(ndo);
- ndo->ndo_ll_hdr_len += l2info.header_len;
}
#endif
ip_heuristic_guess (ndo, p, l2info.length);
ndo->ndo_ll_hdr_len += l2info.header_len;
- return;
-
-trunc:
- nd_print_trunc(ndo);
- ndo->ndo_ll_hdr_len += l2info.header_len;
}
#endif
ip_heuristic_guess (ndo, p, l2info.length);
ndo->ndo_ll_hdr_len += l2info.header_len;
- return;
-
-trunc:
- nd_print_trunc(ndo);
- ndo->ndo_ll_hdr_len += l2info.header_len;
}
#endif
ND_PRINT("Bundle-ID %u, ", l2info.bundle);
switch (l2info.proto) {
case (LLCSAP_ISONS<<8 | LLCSAP_ISONS):
+ /* At least one byte is required */
+ ND_TCHECK_LEN(p, 1);
isoclns_print(ndo, p + 1, l2info.length - 1);
break;
case (LLC_UI<<8 | NLPID_Q933):
}
if (GET_U_1(p) == 0x03) { /* Cisco style NLPID encaps ? */
+ /* At least one byte is required */
+ ND_TCHECK_LEN(p, 1);
isoclns_print(ndo, p + 1, l2info.length - 1);
/* FIXME check if frame was recognized */
ndo->ndo_ll_hdr_len += l2info.header_len;
}
if (GET_U_1(p) == 0x03) { /* Cisco style NLPID encaps ? */
+ /* At least one byte is required */
+ ND_TCHECK_LEN(p, 1);
isoclns_print(ndo, p + 1, l2info.length - 1);
/* FIXME check if frame was recognized */
ndo->ndo_ll_hdr_len += l2info.header_len;