Home
last modified time | relevance | path

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

/external/tcpdump/
Dprint-ospf6.c450 register const struct lsa6 *lsap, const u_char *dataend) in ospf6_print_lsa() argument
472 if (ospf6_print_lshdr(ndo, &lsap->ls_hdr, dataend)) in ospf6_print_lsa()
474 ND_TCHECK(lsap->ls_hdr.ls_length); in ospf6_print_lsa()
475 length = EXTRACT_16BITS(&lsap->ls_hdr.ls_length); in ospf6_print_lsa()
483 if (length < sizeof(struct lsa6_hdr) || (u_char *)lsap + length > dataend) in ospf6_print_lsa()
486 tptr = (uint8_t *)lsap+sizeof(struct lsa6_hdr); in ospf6_print_lsa()
488 switch (EXTRACT_16BITS(&lsap->ls_hdr.ls_type)) { in ospf6_print_lsa()
490 if (lsa_length < sizeof (lsap->lsa_un.un_rla.rla_options)) in ospf6_print_lsa()
492 lsa_length -= sizeof (lsap->lsa_un.un_rla.rla_options); in ospf6_print_lsa()
493 ND_TCHECK(lsap->lsa_un.un_rla.rla_options); in ospf6_print_lsa()
[all …]
Dprint-ospf.c550 register const struct lsa *lsap) in ospf_print_lsa() argument
562 tptr = (uint8_t *)lsap->lsa_un.un_unknown; /* squelch compiler warnings */ in ospf_print_lsa()
563 ls_length = ospf_print_lshdr(ndo, &lsap->ls_hdr); in ospf_print_lsa()
566 ls_end = (uint8_t *)lsap + ls_length; in ospf_print_lsa()
569 switch (lsap->ls_hdr.ls_type) { in ospf_print_lsa()
572 ND_TCHECK(lsap->lsa_un.un_rla.rla_flags); in ospf_print_lsa()
574 bittok2str(ospf_rla_flag_values, "none", lsap->lsa_un.un_rla.rla_flags))); in ospf_print_lsa()
576 ND_TCHECK(lsap->lsa_un.un_rla.rla_count); in ospf_print_lsa()
577 j = EXTRACT_16BITS(&lsap->lsa_un.un_rla.rla_count); in ospf_print_lsa()
578 ND_TCHECK(lsap->lsa_un.un_rla.rla_link); in ospf_print_lsa()
[all …]