Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2022 16:38:38 -0700
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Florian Smeets <flo@smeets.xyz>
Cc:        Michael Butler <imb@protected-networks.net>, freebsd-current@freebsd.org
Subject:   Re: IPv6 TCP: first two SYN packets to local v6 unicast addresses ignored
Message-ID:  <YmM8fknVX/wmUDiD@FreeBSD.org>
In-Reply-To: <7cd2e76a-c6d1-e8d7-b9fb-b8797f1ca731@smeets.xyz>
References:  <131c363a-7b7d-a106-5b8a-6838e7a66567@smeets.xyz> <E0584477-0F2E-454D-871C-368F14A9AF1D@freebsd.org> <9679642b-5de6-28be-a64b-07375c3efeba@smeets.xyz> <b12a74b2-cd7d-2066-ff60-b14c08d70d6f@protected-networks.net> <YlpSs8p/3Gh1JDI5@FreeBSD.org> <7cd2e76a-c6d1-e8d7-b9fb-b8797f1ca731@smeets.xyz>

next in thread | previous in thread | raw e-mail | index | archive | help

--XgW92qlAwpHkZehI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

  Hi Florian,

here is a patch that should help with the IPv6 problem. I'm not
yet committing it, it might be not final.

-- 
Gleb Smirnoff

--XgW92qlAwpHkZehI
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="ip6.sav.diff"

diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 3a13d2a9dc7..625de6d3657 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -825,7 +825,7 @@ ip6_input(struct mbuf *m)
 			    ip6_sprintf(ip6bufd, &ip6->ip6_dst)));
 			goto bad;
 		}
-		if (V_ip6_sav && !(rcvif->if_flags & IFF_LOOPBACK) &&
+		if (V_ip6_sav && !(m->m_flags & M_LOOP) &&
 		    __predict_false(in6_localip_fib(&ip6->ip6_src,
 			    rcvif->if_fib))) {
 			IP6STAT_INC(ip6s_badscope); /* XXX */

--XgW92qlAwpHkZehI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YmM8fknVX/wmUDiD>