switch (af) {
case AFNUM_INET:
while(tlv_tlen >= sizeof(nd_ipv4)) {
- ND_TCHECK_LEN(tptr, sizeof(nd_ipv4));
ND_PRINT(" %s", GET_IPADDR_STRING(tptr));
tlv_tlen-=sizeof(nd_ipv4);
tptr+=sizeof(nd_ipv4);
break;
case AFNUM_INET6:
while(tlv_tlen >= sizeof(nd_ipv6)) {
- ND_TCHECK_LEN(tptr, sizeof(nd_ipv6));
ND_PRINT(" %s", GET_IP6ADDR_STRING(tptr));
tlv_tlen-=sizeof(nd_ipv6);
tptr+=sizeof(nd_ipv6);
return(tlv_len+4); /* Type & Length fields not included */
trunc:
- nd_print_trunc(ndo);
- return 0;
+ nd_trunc_longjmp(ndo);
invalid:
return(tlv_len+4); /* Type & Length fields not included */
}
return pdu_len+4;
trunc:
- nd_print_trunc(ndo);
- return 0;
+ nd_trunc_longjmp(ndo);
}