• Home
  • Raw
  • Download

Lines Matching refs:lshp

514                  register const struct lsa_hdr *lshp)  in ospf_print_lshdr()  argument
518 ND_TCHECK(lshp->ls_length); in ospf_print_lshdr()
519 ls_length = EXTRACT_16BITS(&lshp->ls_length); in ospf_print_lshdr()
526 ND_TCHECK(lshp->ls_seq); /* XXX - ls_length check checked this */ in ospf_print_lshdr()
528 ipaddr_string(ndo, &lshp->ls_router), in ospf_print_lshdr()
529 EXTRACT_32BITS(&lshp->ls_seq), in ospf_print_lshdr()
530 EXTRACT_16BITS(&lshp->ls_age), in ospf_print_lshdr()
533 ND_TCHECK(lshp->ls_type); /* XXX - ls_length check checked this */ in ospf_print_lshdr()
534 switch (lshp->ls_type) { in ospf_print_lshdr()
540 tok2str(lsa_values,"unknown",lshp->ls_type), in ospf_print_lshdr()
541 lshp->ls_type, in ospf_print_lshdr()
545 *(&lshp->un_lsa_id.opaque_field.opaque_type)), in ospf_print_lshdr()
546 *(&lshp->un_lsa_id.opaque_field.opaque_type), in ospf_print_lshdr()
547 EXTRACT_24BITS(&lshp->un_lsa_id.opaque_field.opaque_id) in ospf_print_lshdr()
555 tok2str(lsa_values,"unknown",lshp->ls_type), in ospf_print_lshdr()
556 lshp->ls_type, in ospf_print_lshdr()
557 ipaddr_string(ndo, &lshp->un_lsa_id.lsa_id))); in ospf_print_lshdr()
561 ND_TCHECK(lshp->ls_options); /* XXX - ls_length check checked this */ in ospf_print_lshdr()
562 …ND_PRINT((ndo, "\n\t Options: [%s]", bittok2str(ospf_option_values, "none", lshp->ls_options))); in ospf_print_lshdr()
985 register const struct lsa_hdr *lshp; in ospf_decode_v2() local
1045 lshp = op->ospf_db.db_lshdr; in ospf_decode_v2()
1046 while (((const u_char *)lshp < dataend) && ospf_print_lshdr(ndo, lshp) != -1) { in ospf_decode_v2()
1047 ++lshp; in ospf_decode_v2()
1095 lshp = op->ospf_lsa.lsa_lshdr; in ospf_decode_v2()
1096 while (ospf_print_lshdr(ndo, lshp) != -1) { in ospf_decode_v2()
1097 ++lshp; in ospf_decode_v2()