• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/tcpdump-4.4.0/

Lines Matching defs:op

835 ospf_decode_lls(register const struct ospfhdr *op,
844 switch (op->ospf_type) {
847 if (!(op->ospf_hello.hello_options & OSPF_OPTION_L))
852 if (!(op->ospf_db.db_options & OSPF_OPTION_L))
861 length2 = EXTRACT_16BITS(&op->ospf_len);
862 dptr = (u_char *)op + length2;
863 dataend = (u_char *)op + length;
865 if (EXTRACT_16BITS(&op->ospf_authtype) == OSPF_AUTH_MD5) {
866 dptr = dptr + op->ospf_authdata[3];
867 length2 += op->ospf_authdata[3];
927 ospf_decode_v2(register const struct ospfhdr *op,
936 switch (op->ospf_type) {
947 bittok2str(ospf_option_values,"none",op->ospf_hello.hello_options));
949 TCHECK(op->ospf_hello.hello_deadint);
951 EXTRACT_16BITS(&op->ospf_hello.hello_helloint),
952 EXTRACT_32BITS(&op->ospf_hello.hello_deadint),
953 ipaddr_string(&op->ospf_hello.hello_mask),
954 op->ospf_hello.hello_priority);
956 TCHECK(op->ospf_hello.hello_dr);
957 if (op->ospf_hello.hello_dr.s_addr != 0)
959 ipaddr_string(&op->ospf_hello.hello_dr));
961 TCHECK(op->ospf_hello.hello_bdr);
962 if (op->ospf_hello.hello_bdr.s_addr != 0)
964 ipaddr_string(&op->ospf_hello.hello_bdr));
966 ap = op->ospf_hello.hello_neighbor;
977 TCHECK(op->ospf_db.db_options);
979 bittok2str(ospf_option_values,"none",op->ospf_db.db_options));
980 TCHECK(op->ospf_db.db_flags);
982 bittok2str(ospf_dd_flag_values,"none",op->ospf_db.db_flags));
983 TCHECK(op->ospf_db.db_ifmtu);
984 if (op->ospf_db.db_ifmtu) {
985 printf(", MTU: %u", EXTRACT_16BITS(&op->ospf_db.db_ifmtu));
987 TCHECK(op->ospf_db.db_seq);
988 printf(", Sequence: 0x%08x", EXTRACT_32BITS(&op->ospf_db.db_seq));
991 lshp = op->ospf_db.db_lshdr;
998 lsrp = op->ospf_lsr;
1028 lsap = op->ospf_lsu.lsu_lsa;
1029 TCHECK(op->ospf_lsu.lsu_count);
1030 lsa_count_max = EXTRACT_32BITS(&op->ospf_lsu.lsu_count);
1041 lshp = op->ospf_lsa.lsa_lshdr;
1059 register const struct ospfhdr *op;
1063 op = (struct ospfhdr *)bp;
1066 TCHECK(op->ospf_authtype);
1067 if (EXTRACT_16BITS(&op->ospf_authtype) == OSPF_AUTH_MD5) {
1074 TCHECK(op->ospf_type);
1075 cp = tok2str(type2str, "unknown LS-type", op->ospf_type);
1077 op->ospf_version,
1087 TCHECK(op->ospf_len);
1088 if (length != EXTRACT_16BITS(&op->ospf_len)) {
1089 printf(" [len %d]", EXTRACT_16BITS(&op->ospf_len));
1092 if (length > EXTRACT_16BITS(&op->ospf_len)) {
1093 dataend = bp + EXTRACT_16BITS(&op->ospf_len);
1098 TCHECK(op->ospf_routerid);
1099 printf("\n\tRouter-ID %s", ipaddr_string(&op->ospf_routerid));
1101 TCHECK(op->ospf_areaid);
1102 if (op->ospf_areaid.s_addr != 0)
1103 printf(", Area %s", ipaddr_string(&op->ospf_areaid));
1109 TCHECK2(op->ospf_authdata[0], sizeof(op->ospf_authdata));
1112 tok2str(ospf_authtype_values,"unknown",EXTRACT_16BITS(&op->ospf_authtype)),
1113 EXTRACT_16BITS(&op->ospf_authtype));
1115 switch (EXTRACT_16BITS(&op->ospf_authtype)) {
1122 safeputs((const char *)op->ospf_authdata, OSPF_AUTH_SIMPLE_LEN);
1127 *((op->ospf_authdata)+2),
1128 *((op->ospf_authdata)+3),
1129 EXTRACT_32BITS((op->ospf_authdata)+4));
1137 switch (op->ospf_version) {
1141 if (ospf_decode_v2(op, dataend))
1143 if (length > EXTRACT_16BITS(&op->ospf_len)) {
1144 if (ospf_decode_lls(op, length))
1150 printf(" ospf [version %d]", op->ospf_version);