Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:ls_length

184                      const uint8_t *tptr, u_int ls_length)
189 while (ls_length > 0) {
191 if (ls_length < 4) {
192 ND_PRINT((ndo, "\n\t Remaining LS length %u < 4", ls_length));
198 ls_length-=4;
205 if (tlv_length > ls_length) {
207 ls_length));
256 ls_length-=tlv_length;
267 const uint8_t *tptr, u_int ls_length)
276 while (ls_length != 0) {
278 if (ls_length < 4) {
279 ND_PRINT((ndo, "\n\t Remaining LS length %u < 4", ls_length));
285 ls_length-=4;
292 if (tlv_length > ls_length) {
294 ls_length));
442 ls_length-=tlv_length;
454 u_int ls_length;
456 ND_TCHECK(lshp->ls_length);
457 ls_length = EXTRACT_16BITS(&lshp->ls_length);
458 if (ls_length < sizeof(struct lsa_hdr)) {
459 ND_PRINT((ndo, "\n\t Bogus length %u < header (%lu)", ls_length,
464 ND_TCHECK(lshp->ls_seq); /* XXX - ls_length check checked this */
469 ls_length - (u_int)sizeof(struct lsa_hdr)));
471 ND_TCHECK(lshp->ls_type); /* XXX - ls_length check checked this */
499 ND_TCHECK(lshp->ls_options); /* XXX - ls_length check checked this */
502 return (ls_length);
559 register int ls_length;
563 ls_length = ospf_print_lshdr(ndo, &lsap->ls_hdr);
564 if (ls_length == -1)
566 ls_end = (uint8_t *)lsap + ls_length;
567 ls_length -= sizeof(struct lsa_hdr);
739 while (ls_length != 0) {
741 if (ls_length < 4) {
742 ND_PRINT((ndo, "\n\t Remaining LS length %u < 4", ls_length));
748 ls_length-=4;
755 if (tlv_length > ls_length) {
757 ls_length));
780 ls_length-=tlv_length;
786 ls_length) == -1) {
793 ls_length) == -1) {
801 "\n\t ", ls_length))
811 "\n\t ", ls_length)) {