Lines Matching refs:ls_length

185                      const uint8_t *tptr, u_int ls_length)  in ospf_print_grace_lsa()  argument
190 while (ls_length > 0) { in ospf_print_grace_lsa()
192 if (ls_length < 4) { in ospf_print_grace_lsa()
193 ND_PRINT((ndo, "\n\t Remaining LS length %u < 4", ls_length)); in ospf_print_grace_lsa()
199 ls_length-=4; in ospf_print_grace_lsa()
206 if (tlv_length > ls_length) { in ospf_print_grace_lsa()
208 ls_length)); in ospf_print_grace_lsa()
257 ls_length-=tlv_length; in ospf_print_grace_lsa()
268 const uint8_t *tptr, u_int ls_length) in ospf_print_te_lsa() argument
277 while (ls_length != 0) { in ospf_print_te_lsa()
279 if (ls_length < 4) { in ospf_print_te_lsa()
280 ND_PRINT((ndo, "\n\t Remaining LS length %u < 4", ls_length)); in ospf_print_te_lsa()
286 ls_length-=4; in ospf_print_te_lsa()
293 if (tlv_length > ls_length) { in ospf_print_te_lsa()
295 ls_length)); in ospf_print_te_lsa()
501 ls_length-=tlv_length; in ospf_print_te_lsa()
516 u_int ls_length; in ospf_print_lshdr() local
518 ND_TCHECK(lshp->ls_length); in ospf_print_lshdr()
519 ls_length = EXTRACT_16BITS(&lshp->ls_length); in ospf_print_lshdr()
520 if (ls_length < sizeof(struct lsa_hdr)) { in ospf_print_lshdr()
521 ND_PRINT((ndo, "\n\t Bogus length %u < header (%lu)", ls_length, in ospf_print_lshdr()
531 ls_length - (u_int)sizeof(struct lsa_hdr))); in ospf_print_lshdr()
564 return (ls_length); in ospf_print_lshdr()
625 register int ls_length; in ospf_print_lsa() local
629 ls_length = ospf_print_lshdr(ndo, &lsap->ls_hdr); in ospf_print_lsa()
630 if (ls_length == -1) in ospf_print_lsa()
632 ls_end = (const uint8_t *)lsap + ls_length; in ospf_print_lsa()
633 ls_length -= sizeof(struct lsa_hdr); in ospf_print_lsa()
806 while (ls_length != 0) { in ospf_print_lsa()
808 if (ls_length < 4) { in ospf_print_lsa()
809 ND_PRINT((ndo, "\n\t Remaining LS length %u < 4", ls_length)); in ospf_print_lsa()
815 ls_length-=4; in ospf_print_lsa()
822 if (tlv_length > ls_length) { in ospf_print_lsa()
824 ls_length)); in ospf_print_lsa()
847 ls_length-=tlv_length; in ospf_print_lsa()
853 ls_length) == -1) { in ospf_print_lsa()
860 ls_length) == -1) { in ospf_print_lsa()
868 "\n\t ", ls_length)) in ospf_print_lsa()
878 "\n\t ", ls_length)) { in ospf_print_lsa()