Lines Matching refs:op
749 ospf_decode_v2(register const struct ospfhdr *op,
758 switch (op->ospf_type) {
769 bittok2str(ospf_option_values,"none",op->ospf_hello.hello_options));
771 TCHECK(op->ospf_hello.hello_deadint);
773 EXTRACT_16BITS(&op->ospf_hello.hello_helloint),
774 EXTRACT_32BITS(&op->ospf_hello.hello_deadint),
775 ipaddr_string(&op->ospf_hello.hello_mask),
776 op->ospf_hello.hello_priority);
778 TCHECK(op->ospf_hello.hello_dr);
779 if (op->ospf_hello.hello_dr.s_addr != 0)
781 ipaddr_string(&op->ospf_hello.hello_dr));
783 TCHECK(op->ospf_hello.hello_bdr);
784 if (op->ospf_hello.hello_bdr.s_addr != 0)
786 ipaddr_string(&op->ospf_hello.hello_bdr));
788 ap = op->ospf_hello.hello_neighbor;
799 TCHECK(op->ospf_db.db_options);
801 bittok2str(ospf_option_values,"none",op->ospf_db.db_options));
802 TCHECK(op->ospf_db.db_flags);
804 bittok2str(ospf_dd_flag_values,"none",op->ospf_db.db_flags));
808 lshp = op->ospf_db.db_lshdr;
816 lsrp = op->ospf_lsr;
846 lsap = op->ospf_lsu.lsu_lsa;
847 TCHECK(op->ospf_lsu.lsu_count);
848 lsa_count_max = EXTRACT_32BITS(&op->ospf_lsu.lsu_count);
859 lshp = op->ospf_lsa.lsa_lshdr;
866 printf("v2 type (%d)", op->ospf_type);
878 register const struct ospfhdr *op;
882 op = (struct ospfhdr *)bp;
885 TCHECK(op->ospf_authtype);
886 if (EXTRACT_16BITS(&op->ospf_authtype) == OSPF_AUTH_MD5) {
893 TCHECK(op->ospf_type);
894 cp = tok2str(type2str, "unknown LS-type", op->ospf_type);
896 op->ospf_version,
905 TCHECK(op->ospf_len);
906 if (length != EXTRACT_16BITS(&op->ospf_len)) {
907 printf(" [len %d]", EXTRACT_16BITS(&op->ospf_len));
912 TCHECK(op->ospf_routerid);
913 printf("\n\tRouter-ID: %s", ipaddr_string(&op->ospf_routerid));
915 TCHECK(op->ospf_areaid);
916 if (op->ospf_areaid.s_addr != 0)
917 printf(", Area %s", ipaddr_string(&op->ospf_areaid));
923 TCHECK2(op->ospf_authdata[0], sizeof(op->ospf_authdata));
926 tok2str(ospf_authtype_values,"unknown",EXTRACT_16BITS(&op->ospf_authtype)),
927 EXTRACT_16BITS(&op->ospf_authtype));
929 switch (EXTRACT_16BITS(&op->ospf_authtype)) {
936 safeputs(op->ospf_authdata, OSPF_AUTH_SIMPLE_LEN);
941 *((op->ospf_authdata)+2),
942 *((op->ospf_authdata)+3),
943 EXTRACT_32BITS((op->ospf_authdata)+4));
951 switch (op->ospf_version) {
955 if (ospf_decode_v2(op, dataend))
960 printf(" ospf [version %d]", op->ospf_version);