Lines Matching refs:lsap
450 register const struct lsa6 *lsap, const u_char *dataend)
472 if (ospf6_print_lshdr(ndo, &lsap->ls_hdr, dataend))
474 ND_TCHECK(lsap->ls_hdr.ls_length);
475 length = EXTRACT_16BITS(&lsap->ls_hdr.ls_length);
483 if (length < sizeof(struct lsa6_hdr) || (u_char *)lsap + length > dataend)
486 tptr = (uint8_t *)lsap+sizeof(struct lsa6_hdr);
488 switch (EXTRACT_16BITS(&lsap->ls_hdr.ls_type)) {
490 if (lsa_length < sizeof (lsap->lsa_un.un_rla.rla_options))
492 lsa_length -= sizeof (lsap->lsa_un.un_rla.rla_options);
493 ND_TCHECK(lsap->lsa_un.un_rla.rla_options);
496 EXTRACT_32BITS(&lsap->lsa_un.un_rla.rla_options))));
499 lsap->lsa_un.un_rla.rla_flags)));
501 rlp = lsap->lsa_un.un_rla.rla_link;
544 if (lsa_length < sizeof (lsap->lsa_un.un_nla.nla_options))
546 lsa_length -= sizeof (lsap->lsa_un.un_nla.nla_options);
547 lsap->lsa_un.un_nla.nla_options);
550 EXTRACT_32BITS(&lsap->lsa_un.un_nla.nla_options))));
553 ap = lsap->lsa_un.un_nla.nla_router;
565 if (lsa_length < sizeof (lsap->lsa_un.un_inter_ap.inter_ap_metric))
567 lsa_length -= sizeof (lsap->lsa_un.un_inter_ap.inter_ap_metric);
568 ND_TCHECK(lsap->lsa_un.un_inter_ap.inter_ap_metric);
570 EXTRACT_32BITS(&lsap->lsa_un.un_inter_ap.inter_ap_metric) & SLA_MASK_METRIC));
572 tptr = (uint8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix;
583 if (lsa_length < sizeof (lsap->lsa_un.un_asla.asla_metric))
585 lsa_length -= sizeof (lsap->lsa_un.un_asla.asla_metric);
586 ND_TCHECK(lsap->lsa_un.un_asla.asla_metric);
587 flags32 = EXTRACT_32BITS(&lsap->lsa_un.un_asla.asla_metric);
591 EXTRACT_32BITS(&lsap->lsa_un.un_asla.asla_metric) &
594 tptr = (uint8_t *)lsap->lsa_un.un_asla.asla_prefix;
638 llsap = &lsap->lsa_un.un_llsa;
669 if (lsa_length < sizeof (lsap->lsa_un.un_intra_ap.intra_ap_rtid))
671 lsa_length -= sizeof (lsap->lsa_un.un_intra_ap.intra_ap_rtid);
672 ND_TCHECK(lsap->lsa_un.un_intra_ap.intra_ap_rtid);
674 EXTRACT_16BITS(&lsap->lsa_un.un_intra_ap.intra_ap_lstype),
675 &lsap->lsa_un.un_intra_ap.intra_ap_lsid);
677 if (lsa_length < sizeof (lsap->lsa_un.un_intra_ap.intra_ap_nprefix))
679 lsa_length -= sizeof (lsap->lsa_un.un_intra_ap.intra_ap_nprefix);
680 ND_TCHECK(lsap->lsa_un.un_intra_ap.intra_ap_nprefix);
681 prefixes = EXTRACT_16BITS(&lsap->lsa_un.un_intra_ap.intra_ap_nprefix);
684 tptr = (uint8_t *)lsap->lsa_un.un_intra_ap.intra_ap_prefix;
729 register const struct lsa6 *lsap;
814 lsap = lsup->lsu_lsa;
815 while ((u_char *)lsap < dataend && i--) {
816 if (ospf6_print_lsa(ndo, lsap, dataend))
818 lsap = (struct lsa6 *)((u_char *)lsap +
819 EXTRACT_16BITS(&lsap->ls_hdr.ls_length));