Lines Matching refs:ls_length

196 ospf_print_grace_lsa (const u_int8_t *tptr, u_int ls_length) {  in ospf_print_grace_lsa()  argument
201 while (ls_length > 0) { in ospf_print_grace_lsa()
203 if (ls_length < 4) { in ospf_print_grace_lsa()
204 printf("\n\t Remaining LS length %u < 4", ls_length); in ospf_print_grace_lsa()
210 ls_length-=4; in ospf_print_grace_lsa()
217 if (tlv_length > ls_length) { in ospf_print_grace_lsa()
219 ls_length); in ospf_print_grace_lsa()
268 ls_length-=tlv_length; in ospf_print_grace_lsa()
278 ospf_print_te_lsa (const u_int8_t *tptr, u_int ls_length) { in ospf_print_te_lsa() argument
287 while (ls_length != 0) { in ospf_print_te_lsa()
289 if (ls_length < 4) { in ospf_print_te_lsa()
290 printf("\n\t Remaining LS length %u < 4", ls_length); in ospf_print_te_lsa()
296 ls_length-=4; in ospf_print_te_lsa()
303 if (tlv_length > ls_length) { in ospf_print_te_lsa()
305 ls_length); in ospf_print_te_lsa()
453 ls_length-=tlv_length; in ospf_print_te_lsa()
465 u_int ls_length; in ospf_print_lshdr() local
467 TCHECK(lshp->ls_length); in ospf_print_lshdr()
468 ls_length = EXTRACT_16BITS(&lshp->ls_length); in ospf_print_lshdr()
469 if (ls_length < sizeof(struct lsa_hdr)) { in ospf_print_lshdr()
470 printf("\n\t Bogus length %u < header (%lu)", ls_length, in ospf_print_lshdr()
480 ls_length-(u_int)sizeof(struct lsa_hdr)); in ospf_print_lshdr()
513 return (ls_length); in ospf_print_lshdr()
568 register int ls_length; in ospf_print_lsa() local
572 ls_length = ospf_print_lshdr(&lsap->ls_hdr); in ospf_print_lsa()
573 if (ls_length == -1) in ospf_print_lsa()
575 ls_end = (u_int8_t *)lsap + ls_length; in ospf_print_lsa()
576 ls_length -= sizeof(struct lsa_hdr); in ospf_print_lsa()
749 while (ls_length != 0) { in ospf_print_lsa()
751 if (ls_length < 4) { in ospf_print_lsa()
752 printf("\n\t Remaining LS length %u < 4", ls_length); in ospf_print_lsa()
758 ls_length-=4; in ospf_print_lsa()
765 if (tlv_length > ls_length) { in ospf_print_lsa()
767 ls_length); in ospf_print_lsa()
790 ls_length-=tlv_length; in ospf_print_lsa()
796 ls_length) == -1) { in ospf_print_lsa()
803 ls_length) == -1) { in ospf_print_lsa()
811 "\n\t ", ls_length)) in ospf_print_lsa()
821 "\n\t ", ls_length)) { in ospf_print_lsa()