From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 15 17:20:28 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DBD416A4CE for ; Wed, 15 Dec 2004 17:20:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C575E43D49 for ; Wed, 15 Dec 2004 17:20:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBFHKR6h044808 for ; Wed, 15 Dec 2004 17:20:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBFHKREV044807; Wed, 15 Dec 2004 17:20:27 GMT (envelope-from gnats) Resent-Date: Wed, 15 Dec 2004 17:20:27 GMT Resent-Message-Id: <200412151720.iBFHKREV044807@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Antonio Tapiador del Dujo Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CFF116A4CF for ; Wed, 15 Dec 2004 17:16:54 +0000 (GMT) Received: from vagabundo.dit.upm.es (vagabundo.dit.upm.es [138.4.24.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id A505843D5F for ; Wed, 15 Dec 2004 17:16:53 +0000 (GMT) (envelope-from isabel@vagabundo.dit.upm.es) Received: from vagabundo.dit.upm.es (localhost [127.0.0.1]) by vagabundo.dit.upm.es (8.13.1/8.13.1) with ESMTP id iBFIM1Gt000796; Wed, 15 Dec 2004 19:22:01 +0100 (CET) (envelope-from isabel@vagabundo.dit.upm.es) Received: (from isabel@localhost) by vagabundo.dit.upm.es (8.13.1/8.13.1/Submit) id iBFIM0c9000795; Wed, 15 Dec 2004 19:22:00 +0100 (CET) (envelope-from isabel) Message-Id: <200412151822.iBFIM0c9000795@vagabundo.dit.upm.es> Date: Wed, 15 Dec 2004 19:22:00 +0100 (CET) From: Antonio Tapiador del Dujo To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/75121: Wrong behaviour of IFF_LINK2 bit in 6in6 gifs? X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Antonio Tapiador del Dujo List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 17:20:28 -0000 >Number: 75121 >Category: kern >Synopsis: Wrong behaviour of IFF_LINK2 bit in 6in6 gifs? >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 15 17:20:27 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Antonio Tapiador del Dujo >Release: FreeBSD 5.3-RELEASE i386 >Organization: DIT - UPM >Environment: System: FreeBSD vagabundo.dit.upm.es 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Tue Dec 14 21:08:08 CET 2004 root@vagabundo.dit.upm.es:/usr/src/sys/i386/compile/MH-4 i386 >Description: I'm researching on IPv6 multihoming. I need a generic 6in6 tunnel interface that accepts packets from any source, so I tried with the IFF_LINK2 as said in gif(4), but it didn't work. Looking at the code, I found out the address checks are done regardless of the IFF_LINK2 (netinet6/in6_gif.c, line 318) Shouldn't these checks take into account the IFF_LINK2? Moving them inside the next if works as I expected. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: