const u_char *p;
ndo->ndo_protocol = "rt6";
- dp = (const struct ip6_rthdr *)bp;
- ND_TCHECK_1(dp->ip6r_segleft);
+ nd_print_protocol_caps(ndo);
+ dp = (const struct ip6_rthdr *)bp;
len = GET_U_1(dp->ip6r_len);
- ND_PRINT("srcrt (len=%u", len); /*)*/
+ ND_PRINT(" (len=%u", len); /*)*/
type = GET_U_1(dp->ip6r_type);
ND_PRINT(", type=%u", type);
+ if (type == IPV6_RTHDR_TYPE_0)
+ ND_PRINT(" [Deprecated]");
ND_PRINT(", segleft=%u", GET_U_1(dp->ip6r_segleft));
switch (type) {
}
trunc:
- ND_PRINT("[|srcrt]");
+ nd_print_trunc(ndo);
return -1;
}