Lines Matching refs:lsap
451 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()
497 EXTRACT_32BITS(&lsap->lsa_un.un_rla.rla_options)))); in ospf6_print_lsa()
500 lsap->lsa_un.un_rla.rla_flags))); in ospf6_print_lsa()
502 rlp = lsap->lsa_un.un_rla.rla_link; in ospf6_print_lsa()
545 if (lsa_length < sizeof (lsap->lsa_un.un_nla.nla_options)) in ospf6_print_lsa()
547 lsa_length -= sizeof (lsap->lsa_un.un_nla.nla_options); in ospf6_print_lsa()
548 ND_TCHECK(lsap->lsa_un.un_nla.nla_options); in ospf6_print_lsa()
551 EXTRACT_32BITS(&lsap->lsa_un.un_nla.nla_options)))); in ospf6_print_lsa()
554 ap = lsap->lsa_un.un_nla.nla_router; in ospf6_print_lsa()
566 if (lsa_length < sizeof (lsap->lsa_un.un_inter_ap.inter_ap_metric)) in ospf6_print_lsa()
568 lsa_length -= sizeof (lsap->lsa_un.un_inter_ap.inter_ap_metric); in ospf6_print_lsa()
569 ND_TCHECK(lsap->lsa_un.un_inter_ap.inter_ap_metric); in ospf6_print_lsa()
571 EXTRACT_32BITS(&lsap->lsa_un.un_inter_ap.inter_ap_metric) & SLA_MASK_METRIC)); in ospf6_print_lsa()
573 tptr = (const uint8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix; in ospf6_print_lsa()
584 if (lsa_length < sizeof (lsap->lsa_un.un_asla.asla_metric)) in ospf6_print_lsa()
586 lsa_length -= sizeof (lsap->lsa_un.un_asla.asla_metric); in ospf6_print_lsa()
587 ND_TCHECK(lsap->lsa_un.un_asla.asla_metric); in ospf6_print_lsa()
588 flags32 = EXTRACT_32BITS(&lsap->lsa_un.un_asla.asla_metric); in ospf6_print_lsa()
592 EXTRACT_32BITS(&lsap->lsa_un.un_asla.asla_metric) & in ospf6_print_lsa()
595 tptr = (const uint8_t *)lsap->lsa_un.un_asla.asla_prefix; in ospf6_print_lsa()
639 llsap = &lsap->lsa_un.un_llsa; in ospf6_print_lsa()
671 if (lsa_length < sizeof (lsap->lsa_un.un_intra_ap.intra_ap_rtid)) in ospf6_print_lsa()
673 lsa_length -= sizeof (lsap->lsa_un.un_intra_ap.intra_ap_rtid); in ospf6_print_lsa()
674 ND_TCHECK(lsap->lsa_un.un_intra_ap.intra_ap_rtid); in ospf6_print_lsa()
676 EXTRACT_16BITS(&lsap->lsa_un.un_intra_ap.intra_ap_lstype), in ospf6_print_lsa()
677 &lsap->lsa_un.un_intra_ap.intra_ap_lsid); in ospf6_print_lsa()
679 if (lsa_length < sizeof (lsap->lsa_un.un_intra_ap.intra_ap_nprefix)) in ospf6_print_lsa()
681 lsa_length -= sizeof (lsap->lsa_un.un_intra_ap.intra_ap_nprefix); in ospf6_print_lsa()
682 ND_TCHECK(lsap->lsa_un.un_intra_ap.intra_ap_nprefix); in ospf6_print_lsa()
683 prefixes = EXTRACT_16BITS(&lsap->lsa_un.un_intra_ap.intra_ap_nprefix); in ospf6_print_lsa()
686 tptr = (const uint8_t *)lsap->lsa_un.un_intra_ap.intra_ap_prefix; in ospf6_print_lsa()
731 register const struct lsa6 *lsap; in ospf6_decode_v3() local
817 lsap = lsup->lsu_lsa; in ospf6_decode_v3()
818 while ((const u_char *)lsap < dataend && i--) { in ospf6_decode_v3()
819 if (ospf6_print_lsa(ndo, lsap, dataend)) in ospf6_decode_v3()
821 lsap = (const struct lsa6 *)((const u_char *)lsap + in ospf6_decode_v3()
822 EXTRACT_16BITS(&lsap->ls_hdr.ls_length)); in ospf6_decode_v3()