int totlen;
uint32_t t, v;
- ND_TCHECK(p[0]);
+ ND_TCHECK_1(p);
if (EXTRACT_U_1(p) & 0x80)
totlen = 4;
else {
int totlen;
uint32_t t;
- ND_TCHECK(p[0]);
+ ND_TCHECK_1(p);
if (EXTRACT_U_1(p) & 0x80)
totlen = 4;
else {
ND_PRINT((ndo,"type=#%d ", t));
if (EXTRACT_U_1(p) & 0x80) {
ND_PRINT((ndo,"value="));
- t = p[2];
+ t = EXTRACT_U_1(p + 2);
if (!rawprint(ndo, (const uint8_t *)(p + 2), 2)) {
ND_PRINT((ndo,")"));
goto trunc;
const u_char *bp, u_int length,
const u_char *bp2)
{
- ND_TCHECK(bp[0]);
+ ND_TCHECK_1(bp);
if(length == 1 && EXTRACT_U_1(bp)==0xff) {
ND_PRINT((ndo, "isakmp-nat-keep-alive"));
return;
if(length < 4) {
goto trunc;
}
- ND_TCHECK(bp[3]);
+ ND_TCHECK_1(bp + 3);
/*
* see if this is an IKE packet