Lines Matching refs:ilv
399 #define ILV_RDAT_LEN(ilv) ((int)(EXTRACT_32BITS(&(ilv)->length)) - ILV_SET_LEN(0)) argument
401 #define GO_NXT_ILV(ilv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_32BITS(&(ilv)->length)), \ argument
402 (struct forces_ilv *)(((char*)(ilv)) \
403 + F_ALN_LEN(EXTRACT_32BITS(&(ilv)->length))))
431 static inline int ilv_valid(const struct forces_ilv *ilv, u_int rlen) in ilv_valid() argument
435 if (EXTRACT_32BITS(&ilv->length) < ILV_HDRL) in ilv_valid()
437 if (EXTRACT_32BITS(&ilv->length) > rlen) in ilv_valid()
439 if (rlen < F_ALN_LEN(EXTRACT_32BITS(&ilv->length))) in ilv_valid()
723 const struct forces_ilv *ilv = (struct forces_ilv *)pptr; in sdatailv_print() local
737 register const u_char *tdp = (u_char *) ILV_DATA(ilv); in sdatailv_print()
738 ND_TCHECK(*ilv); in sdatailv_print()
739 invilv = ilv_valid(ilv, rlen); in sdatailv_print()
747 int ilvl = EXTRACT_32BITS(&ilv->length); in sdatailv_print()
749 EXTRACT_32BITS(&ilv->type), ilvl)); in sdatailv_print()
753 ilv = GO_NXT_ILV(ilv, rlen); in sdatailv_print()
1352 const struct forces_ilv *ilv = (struct forces_ilv *)pptr; in print_metailv() local
1358 rlen = EXTRACT_32BITS(&ilv->length) - ILV_HDRL; in print_metailv()
1359 ND_TCHECK(*ilv); in print_metailv()
1360 ND_PRINT((ndo, "%sMetaID 0x%x length %d\n", ib, EXTRACT_32BITS(&ilv->type), in print_metailv()
1361 EXTRACT_32BITS(&ilv->length))); in print_metailv()
1363 hex_print_with_offset(ndo, "\t\t[", ILV_DATA(ilv), rlen, 0); in print_metailv()
1381 const struct forces_ilv *ilv = (struct forces_ilv *)pptr; in print_metatlv() local
1392 ND_TCHECK(*ilv); in print_metatlv()
1393 invilv = ilv_valid(ilv, rlen); in print_metatlv()
1403 print_metailv(ndo, (u_char *) ilv, 0, indent + 1); in print_metatlv()
1404 ilv = GO_NXT_ILV(ilv, rlen); in print_metatlv()