Lines Matching refs:lshp
463 ospf_print_lshdr(register const struct lsa_hdr *lshp) in ospf_print_lshdr() argument
467 TCHECK(lshp->ls_length); in ospf_print_lshdr()
468 ls_length = EXTRACT_16BITS(&lshp->ls_length); in ospf_print_lshdr()
475 TCHECK(lshp->ls_seq); /* XXX - ls_length check checked this */ in ospf_print_lshdr()
477 ipaddr_string(&lshp->ls_router), in ospf_print_lshdr()
478 EXTRACT_32BITS(&lshp->ls_seq), in ospf_print_lshdr()
479 EXTRACT_16BITS(&lshp->ls_age), in ospf_print_lshdr()
482 TCHECK(lshp->ls_type); /* XXX - ls_length check checked this */ in ospf_print_lshdr()
483 switch (lshp->ls_type) { in ospf_print_lshdr()
489 tok2str(lsa_values,"unknown",lshp->ls_type), in ospf_print_lshdr()
490 lshp->ls_type, in ospf_print_lshdr()
494 *(&lshp->un_lsa_id.opaque_field.opaque_type)), in ospf_print_lshdr()
495 *(&lshp->un_lsa_id.opaque_field.opaque_type), in ospf_print_lshdr()
496 EXTRACT_24BITS(&lshp->un_lsa_id.opaque_field.opaque_id) in ospf_print_lshdr()
504 tok2str(lsa_values,"unknown",lshp->ls_type), in ospf_print_lshdr()
505 lshp->ls_type, in ospf_print_lshdr()
506 ipaddr_string(&lshp->un_lsa_id.lsa_id)); in ospf_print_lshdr()
510 TCHECK(lshp->ls_options); /* XXX - ls_length check checked this */ in ospf_print_lshdr()
511 printf("\n\t Options: [%s]", bittok2str(ospf_option_values,"none",lshp->ls_options)); in ospf_print_lshdr()
928 register const struct lsa_hdr *lshp; in ospf_decode_v2() local
987 lshp = op->ospf_db.db_lshdr; in ospf_decode_v2()
988 while (((u_char *)lshp < dataend) && ospf_print_lshdr(lshp) != -1) { in ospf_decode_v2()
989 ++lshp; in ospf_decode_v2()
1037 lshp = op->ospf_lsa.lsa_lshdr; in ospf_decode_v2()
1038 while (ospf_print_lshdr(lshp) != -1) { in ospf_decode_v2()
1039 ++lshp; in ospf_decode_v2()