Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:ls_length

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