From owner-freebsd-net@FreeBSD.ORG Tue May 4 11:16:22 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0DF516A4CE for ; Tue, 4 May 2004 11:16:22 -0700 (PDT) Received: from 153-bem-1.acn.waw.pl (153-bem-1.acn.waw.pl [62.121.80.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 96E4343D31 for ; Tue, 4 May 2004 11:16:21 -0700 (PDT) (envelope-from lukasz.stelmach@k.telmark.waw.pl) Received: (qmail 9797 invoked by uid 1000); 4 May 2004 18:16:20 -0000 Date: Tue, 4 May 2004 20:16:20 +0200 From: Lukasz Stelmach To: freebsd-net@freebsd.org Message-ID: <20040504181620.GB9699@tygrys.k.telmark.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Mail-Editor: nvi X-GPG-Fingerprint: 68B8 6D4F 0C5E 291F C4E0 BBF4 35DC D8F2 C9BD 2BDC X-GPG-Key: http://www.ee.pw.edu.pl/~stelmacl/gpg_key.txt Subject: if_stf bug/feature X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 18:16:22 -0000 --V0207lvV8h4k8FAm Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings. stf interface has one feature, very inconvinient for me. As far as i could read the source it returns ENETDOWN if the inet4 address of the machine's net interface (primary or the one would be used) does not match proper part of stf's address. This is ok if one has public, routable ip4 address. Since my machine is behind a firewall that forwards and nats all proto 41 ip packets I'd rather stf didn't complain about it. Now what would you suggest? I may comment out the "if" in if_stf.c:348. However this check should be done in general but there also should be some at-runtime method to overide it (maybe sysctl net.inet6.ip6.strictstfaddr?). The line number applies to 4.10-PRERELEASE (ctm src-4 1844). Best regards, PS. I've sent it to freebsd-stable but havn't got any response. --=20 |/ |_, _ .- --, Ju=BF z ka=BFdej strony pe=B3zn=B1, potworne =BF= =B1dze |__ |_|. | \ |_|. ._' /_. B=EAd=EA uprawia=B3 nierz=B1d, za pieni= =B1ze --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFAl93zNdzY8sm9K9wRAntLAJ9qK/lth7xiuji1E82c/c3DKtBjlwCfQ6a8 ZO1LC0gT3PsjieUsIOvhELs= =k2z3 -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--