/*
* print the recorded route in an IP RR, LSRR or SSRR option.
*/
-static int
+static void
ip_printroute(netdissect_options *ndo,
const u_char *cp, u_int length)
{
if (length < 3) {
ND_PRINT(" [bad length %u]", length);
- return (0);
+ return;
}
if ((length + 1) & 3)
ND_PRINT(" [bad length %u]", length);
if (ptr > len)
ND_PRINT(",");
}
- return (0);
}
/*
case IPOPT_RR: /* fall through */
case IPOPT_SSRR:
case IPOPT_LSRR:
- if (ip_printroute(ndo, cp, option_len) == -1)
- goto trunc;
+ ip_printroute(ndo, cp, option_len);
break;
case IPOPT_RA: