Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:ls_length

188         u_int ls_length;
190 TCHECK(lshp->ls_length);
191 ls_length = EXTRACT_16BITS(&lshp->ls_length);
192 if (ls_length < sizeof(struct lsa_hdr)) {
193 printf("\n\t Bogus length %u < %lu", ls_length,
198 TCHECK(lshp->ls_seq); /* XXX - ls_length check checked this */
203 ls_length-(u_int)sizeof(struct lsa_hdr));
205 TCHECK(lshp->ls_type); /* XXX - ls_length check checked this */
233 TCHECK(lshp->ls_options); /* XXX - ls_length check checked this */
236 return (ls_length);
257 register int ls_length;
266 ls_length = ospf_print_lshdr(&lsap->ls_hdr);
267 if (ls_length == -1)
269 ls_end = (u_int8_t *)lsap + ls_length;
270 ls_length -= sizeof(struct lsa_hdr);
453 while (ls_length != 0) {
455 if (ls_length < 4) {
456 printf("\n\t Remaining LS length %u < 4", ls_length);
462 ls_length-=4;
469 if (tlv_length > ls_length) {
471 ls_length);
474 ls_length-=tlv_length;
501 while (ls_length != 0) {
503 if (ls_length < 4) {
504 printf("\n\t Remaining LS length %u < 4", ls_length);
510 ls_length-=4;
517 if (tlv_length > ls_length) {
519 ls_length);
522 ls_length-=tlv_length;
564 while (ls_length != 0) {
566 if (ls_length < 4) {
567 printf("\n\t Remaining LS length %u < 4", ls_length);
573 ls_length-=4;
580 if (tlv_length > ls_length) {
582 ls_length);
585 ls_length-=tlv_length;
730 "\n\t ", ls_length))
739 "\n\t ", ls_length)) {