Lines Matching refs:lsap
199 ospf6_print_lsa(register const struct lsa6 *lsap) in ospf6_print_lsa() argument
221 if (ospf6_print_lshdr(&lsap->ls_hdr)) in ospf6_print_lsa()
223 TCHECK(lsap->ls_hdr.ls_length); in ospf6_print_lsa()
224 length = EXTRACT_16BITS(&lsap->ls_hdr.ls_length); in ospf6_print_lsa()
235 tptr = (u_int8_t *)lsap+sizeof(struct lsa6_hdr); in ospf6_print_lsa()
237 switch (EXTRACT_16BITS(&lsap->ls_hdr.ls_type)) { in ospf6_print_lsa()
239 if (lsa_length < sizeof (lsap->lsa_un.un_rla.rla_options)) in ospf6_print_lsa()
241 lsa_length -= sizeof (lsap->lsa_un.un_rla.rla_options); in ospf6_print_lsa()
242 TCHECK(lsap->lsa_un.un_rla.rla_options); in ospf6_print_lsa()
245 EXTRACT_32BITS(&lsap->lsa_un.un_rla.rla_options))); in ospf6_print_lsa()
248 lsap->lsa_un.un_rla.rla_flags)); in ospf6_print_lsa()
250 rlp = lsap->lsa_un.un_rla.rla_link; in ospf6_print_lsa()
293 if (lsa_length < sizeof (lsap->lsa_un.un_nla.nla_options)) in ospf6_print_lsa()
295 lsa_length -= sizeof (lsap->lsa_un.un_nla.nla_options); in ospf6_print_lsa()
296 TCHECK(lsap->lsa_un.un_nla.nla_options); in ospf6_print_lsa()
299 EXTRACT_32BITS(&lsap->lsa_un.un_nla.nla_options))); in ospf6_print_lsa()
302 ap = lsap->lsa_un.un_nla.nla_router; in ospf6_print_lsa()
314 if (lsa_length < sizeof (lsap->lsa_un.un_inter_ap.inter_ap_metric)) in ospf6_print_lsa()
316 lsa_length -= sizeof (lsap->lsa_un.un_inter_ap.inter_ap_metric); in ospf6_print_lsa()
317 TCHECK(lsap->lsa_un.un_inter_ap.inter_ap_metric); in ospf6_print_lsa()
319 EXTRACT_32BITS(&lsap->lsa_un.un_inter_ap.inter_ap_metric) & SLA_MASK_METRIC); in ospf6_print_lsa()
321 tptr = (u_int8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix; in ospf6_print_lsa()
332 if (lsa_length < sizeof (lsap->lsa_un.un_asla.asla_metric)) in ospf6_print_lsa()
334 lsa_length -= sizeof (lsap->lsa_un.un_asla.asla_metric); in ospf6_print_lsa()
335 TCHECK(lsap->lsa_un.un_asla.asla_metric); in ospf6_print_lsa()
336 flags32 = EXTRACT_32BITS(&lsap->lsa_un.un_asla.asla_metric); in ospf6_print_lsa()
340 EXTRACT_32BITS(&lsap->lsa_un.un_asla.asla_metric) & in ospf6_print_lsa()
343 tptr = (u_int8_t *)lsap->lsa_un.un_asla.asla_prefix; in ospf6_print_lsa()
387 llsap = &lsap->lsa_un.un_llsa; in ospf6_print_lsa()
418 if (lsa_length < sizeof (lsap->lsa_un.un_intra_ap.intra_ap_rtid)) in ospf6_print_lsa()
420 lsa_length -= sizeof (lsap->lsa_un.un_intra_ap.intra_ap_rtid); in ospf6_print_lsa()
421 TCHECK(lsap->lsa_un.un_intra_ap.intra_ap_rtid); in ospf6_print_lsa()
423 EXTRACT_16BITS(&lsap->lsa_un.un_intra_ap.intra_ap_lstype), in ospf6_print_lsa()
424 &lsap->lsa_un.un_intra_ap.intra_ap_lsid); in ospf6_print_lsa()
426 if (lsa_length < sizeof (lsap->lsa_un.un_intra_ap.intra_ap_nprefix)) in ospf6_print_lsa()
428 lsa_length -= sizeof (lsap->lsa_un.un_intra_ap.intra_ap_nprefix); in ospf6_print_lsa()
429 TCHECK(lsap->lsa_un.un_intra_ap.intra_ap_nprefix); in ospf6_print_lsa()
430 prefixes = EXTRACT_16BITS(&lsap->lsa_un.un_intra_ap.intra_ap_nprefix); in ospf6_print_lsa()
433 tptr = (u_int8_t *)lsap->lsa_un.un_intra_ap.intra_ap_prefix; in ospf6_print_lsa()
477 register const struct lsa6 *lsap; in ospf6_decode_v3() local
550 lsap = op->ospf6_lsu.lsu_lsa; in ospf6_decode_v3()
554 if (ospf6_print_lsa(lsap)) in ospf6_decode_v3()
556 lsap = (struct lsa6 *)((u_char *)lsap + in ospf6_decode_v3()
557 EXTRACT_16BITS(&lsap->ls_hdr.ls_length)); in ospf6_decode_v3()