- ND_TCHECK(op->ospf_hello.hello_options);
- ND_PRINT((ndo, "\n\tOptions [%s]",
- bittok2str(ospf_option_values,"none",op->ospf_hello.hello_options)));
-
- ND_TCHECK(op->ospf_hello.hello_deadint);
- ND_PRINT((ndo, "\n\t Hello Timer %us, Dead Timer %us, Mask %s, Priority %u",
- EXTRACT_BE_U_2(&op->ospf_hello.hello_helloint),
- EXTRACT_BE_U_4(&op->ospf_hello.hello_deadint),
- ipaddr_string(ndo, &op->ospf_hello.hello_mask),
- op->ospf_hello.hello_priority));
-
- ND_TCHECK(op->ospf_hello.hello_dr);
- if (op->ospf_hello.hello_dr.s_addr != 0)
- ND_PRINT((ndo, "\n\t Designated Router %s",
- ipaddr_string(ndo, &op->ospf_hello.hello_dr)));
-
- ND_TCHECK(op->ospf_hello.hello_bdr);
- if (op->ospf_hello.hello_bdr.s_addr != 0)
- ND_PRINT((ndo, ", Backup Designated Router %s",
- ipaddr_string(ndo, &op->ospf_hello.hello_bdr)));
+ ND_PRINT("\n\tOptions [%s]",
+ bittok2str(ospf_option_values,"none",GET_U_1(op->ospf_hello.hello_options)));
+
+ ND_PRINT("\n\t Hello Timer %us, Dead Timer %us, Mask %s, Priority %u",
+ GET_BE_U_2(op->ospf_hello.hello_helloint),
+ GET_BE_U_4(op->ospf_hello.hello_deadint),
+ GET_IPADDR_STRING(op->ospf_hello.hello_mask),
+ GET_U_1(op->ospf_hello.hello_priority));
+
+ if (GET_IPV4_TO_NETWORK_ORDER(op->ospf_hello.hello_dr) != 0)
+ ND_PRINT("\n\t Designated Router %s",
+ GET_IPADDR_STRING(op->ospf_hello.hello_dr));
+
+ if (GET_IPV4_TO_NETWORK_ORDER(op->ospf_hello.hello_bdr) != 0)
+ ND_PRINT(", Backup Designated Router %s",
+ GET_IPADDR_STRING(op->ospf_hello.hello_bdr));