Home
last modified time | relevance | path

Searched refs:lsap (Results 1 – 2 of 2) sorted by relevance

/external/tcpdump/
Dprint-ospf6.c451 register const struct lsa6 *lsap, const u_char *dataend) in ospf6_print_lsa() argument
473 if (ospf6_print_lshdr(ndo, &lsap->ls_hdr, dataend)) in ospf6_print_lsa()
475 ND_TCHECK(lsap->ls_hdr.ls_length); in ospf6_print_lsa()
476 length = EXTRACT_16BITS(&lsap->ls_hdr.ls_length); in ospf6_print_lsa()
484 if (length < sizeof(struct lsa6_hdr) || (const u_char *)lsap + length > dataend) in ospf6_print_lsa()
487 tptr = (const uint8_t *)lsap+sizeof(struct lsa6_hdr); in ospf6_print_lsa()
489 switch (EXTRACT_16BITS(&lsap->ls_hdr.ls_type)) { in ospf6_print_lsa()
491 if (lsa_length < sizeof (lsap->lsa_un.un_rla.rla_options)) in ospf6_print_lsa()
493 lsa_length -= sizeof (lsap->lsa_un.un_rla.rla_options); in ospf6_print_lsa()
494 ND_TCHECK(lsap->lsa_un.un_rla.rla_options); in ospf6_print_lsa()
[all …]
Dprint-ospf.c616 register const struct lsa *lsap) in ospf_print_lsa() argument
628 tptr = (const uint8_t *)lsap->lsa_un.un_unknown; /* squelch compiler warnings */ in ospf_print_lsa()
629 ls_length = ospf_print_lshdr(ndo, &lsap->ls_hdr); in ospf_print_lsa()
632 ls_end = (const uint8_t *)lsap + ls_length; in ospf_print_lsa()
635 switch (lsap->ls_hdr.ls_type) { in ospf_print_lsa()
638 ND_TCHECK(lsap->lsa_un.un_rla.rla_flags); in ospf_print_lsa()
640 bittok2str(ospf_rla_flag_values, "none", lsap->lsa_un.un_rla.rla_flags))); in ospf_print_lsa()
642 ND_TCHECK(lsap->lsa_un.un_rla.rla_count); in ospf_print_lsa()
643 j = EXTRACT_16BITS(&lsap->lsa_un.un_rla.rla_count); in ospf_print_lsa()
644 ND_TCHECK(lsap->lsa_un.un_rla.rla_link); in ospf_print_lsa()
[all …]