- EXTRACT_32BITS(&hellop->hello_options))));
-
- ND_TCHECK(hellop->hello_deadint);
- ND_PRINT((ndo, "\n\t Hello Timer %us, Dead Timer %us, Interface-ID %s, Priority %u",
- EXTRACT_16BITS(&hellop->hello_helloint),
- EXTRACT_16BITS(&hellop->hello_deadint),
- ipaddr_string(ndo, &hellop->hello_ifid),
- hellop->hello_priority));
-
- ND_TCHECK(hellop->hello_dr);
- if (EXTRACT_32BITS(&hellop->hello_dr) != 0)
- ND_PRINT((ndo, "\n\t Designated Router %s",
- ipaddr_string(ndo, &hellop->hello_dr)));
- ND_TCHECK(hellop->hello_bdr);
- if (EXTRACT_32BITS(&hellop->hello_bdr) != 0)
- ND_PRINT((ndo, ", Backup Designated Router %s",
- ipaddr_string(ndo, &hellop->hello_bdr)));
+ GET_BE_U_4(hellop->hello_options)));
+
+ ND_PRINT("\n\t Hello Timer %us, Dead Timer %us, Interface-ID %s, Priority %u",
+ GET_BE_U_2(hellop->hello_helloint),
+ GET_BE_U_2(hellop->hello_deadint),
+ GET_IPADDR_STRING(hellop->hello_ifid),
+ GET_U_1(hellop->hello_priority));
+
+ if (GET_BE_U_4(hellop->hello_dr) != 0)
+ ND_PRINT("\n\t Designated Router %s",
+ GET_IPADDR_STRING(hellop->hello_dr));
+ if (GET_BE_U_4(hellop->hello_bdr) != 0)
+ ND_PRINT(", Backup Designated Router %s",
+ GET_IPADDR_STRING(hellop->hello_bdr));