- if (length < sizeof(struct olsr_common)) {
- ND_PRINT(" (packet length < %lu)", sizeof(struct olsr_common));
- goto invalid;
- }
+ nd_print_protocol_caps(ndo);
+ ND_PRINT("v%u", (is_ipv6) ? 6 : 4);
+
+ ND_ICHECKMSG_ZU("packet length", length, <, sizeof(struct olsr_common));