X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6a66f110963d96a92de4f4d2e757ef2893c3c3ee..1bcd37991fa57d9e966a6f96e7cbff59b16c28bd:/print-ip6.c diff --git a/print-ip6.c b/print-ip6.c index 6fef7ba9..525a284e 100644 --- a/print-ip6.c +++ b/print-ip6.c @@ -77,7 +77,6 @@ ip6_finddst(netdissect_options *ndo, nd_ipv6 *dst, * the header, in units of 8 octets, excluding * the first 8 octets. */ - ND_TCHECK_2(cp); advance = (GET_U_1(cp + 1) + 1) << 3; nh = GET_U_1(cp); break; @@ -88,7 +87,6 @@ ip6_finddst(netdissect_options *ndo, nd_ipv6 *dst, * marked as reserved, and the header is always * the same size. */ - ND_TCHECK_1(cp); advance = sizeof(struct ip6_frag); nh = GET_U_1(cp); break; @@ -376,7 +374,7 @@ ip6_print(netdissect_options *ndo, const u_char *bp, u_int length) * XXX - we don't use "advance"; RFC 3775 says that * the next header field in a mobility header * should be IPPROTO_NONE, but speaks of - * the possiblity of a future extension in + * the possibility of a future extension in * which payload can be piggybacked atop a * mobility header. */ @@ -469,7 +467,7 @@ ip6_print(netdissect_options *ndo, const u_char *bp, u_int length) } } ip_demux_print(ndo, cp, len, 6, fragmented, - GET_U_1(ip6->ip6_hlim), nh, bp); + GET_U_1(ip6->ip6_hlim), nh, bp); nd_pop_packet_info(ndo); return; }