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 {
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