Download raw body.
Bug or feature? TCP chksum fails when IPv6 packet carries ext. headers
Bug or feature? TCP chksum fails when IPv6 packet carries ext. headers
Bug or feature? TCP chksum fails when IPv6 packet carries ext. headers
Hello,
On Fri, Feb 28, 2025 at 10:33:53PM +0100, Alexander Bluhm wrote:
</snip>
>
> Anyway, this is a bug. I will commit the diff below. I just fixed
> the formating.
>
diff makes sense to me.
OK sashan
> bluhm
>
> Index: netinet/tcp_input.c
> ===================================================================
> RCS file: /data/mirror/openbsd/cvs/src/sys/netinet/tcp_input.c,v
> diff -u -p -r1.431 tcp_input.c
> --- netinet/tcp_input.c 17 Feb 2025 08:56:33 -0000 1.431
> +++ netinet/tcp_input.c 28 Feb 2025 20:47:37 -0000
> @@ -469,8 +469,7 @@ tcp_input(struct mbuf **mp, int *offp, i
> break;
> #ifdef INET6
> case AF_INET6:
> - sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
> - tlen);
> + sum = in6_cksum(m, IPPROTO_TCP, iphlen, tlen);
> break;
> #endif
> }
>
Bug or feature? TCP chksum fails when IPv6 packet carries ext. headers
Bug or feature? TCP chksum fails when IPv6 packet carries ext. headers
Bug or feature? TCP chksum fails when IPv6 packet carries ext. headers