From atd@curie.dit.upm.es  Fri Mar 12 07:43:59 2004
Return-Path: <atd@curie.dit.upm.es>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DC10316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Mar 2004 07:43:59 -0800 (PST)
Received: from curie.dit.upm.es (curie.dit.upm.es [138.4.7.76])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3681C43D31
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Mar 2004 07:43:59 -0800 (PST)
	(envelope-from atd@curie.dit.upm.es)
Received: from curie.dit.upm.es (localhost [127.0.0.1])
	by curie.dit.upm.es (8.12.10/8.12.10) with ESMTP id i2CGhsm9000949;
	Fri, 12 Mar 2004 17:43:54 +0100 (CET)
	(envelope-from atd@curie.dit.upm.es)
Received: (from atd@localhost)
	by curie.dit.upm.es (8.12.10/8.12.10/Submit) id i2CGhrua000948;
	Fri, 12 Mar 2004 17:43:53 +0100 (CET)
	(envelope-from atd)
Message-Id: <200403121643.i2CGhrua000948@curie.dit.upm.es>
Date: Fri, 12 Mar 2004 17:43:53 +0100 (CET)
From: Antonio Tapiador del Dujo <atapiador@dit.upm.es>
Reply-To: Antonio <atapiador@dit.upm.es>
To: FreeBSD-gnats-submit@freebsd.org
Cc: atd@dit.upm.es
Subject: [patch] IPFilter IPv6 fastroute - MTU bug
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64167
>Category:       kern
>Synopsis:       [patch] IPFilter IPv6 fastroute - MTU bug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    darrenr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 12 07:50:19 PST 2004
>Closed-Date:    Mon Jul 05 17:04:01 GMT 2004
>Last-Modified:  Mon Jul 05 17:04:01 GMT 2004
>Originator:     Antonio Tapiador del Dujo
>Release:        FreeBSD 5.2.1-RELEASE
>Organization:
DIT - UPM
>Environment:
System: FreeBSD x.dit.upm.es 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #8: Fri Mar 12 16:09:48 CET 2004     root@x.dit.upm.es:/usr/src/sys/i386/compile/MH-2  i386

IP Filter: v3.4.31

>Description:
Using ipfilter IPv6 fastroute on rl0 to gif0:<ip6_addr> (moving packets 
to IPv6 over IPv6 tunnel interface) fails.

In /usr/src/sys/contrib/ipfilter/netinet/ip_fil.c, function fastroute6,
line 2022, ND_IFINFO(ifp)->linkmtu gives 0 mtu size

>How-To-Repeat:
Creating an IPv6oIPv6 tunnel and setting ipfilter ipv6 rule like:
pass out on rl0 to gif0:<ip6_addr> from <ip6_prefix>::/80 to any

>Fix:
Remplacing ND_IFINFO(ifp)->linkmtu with IN6_LINKMTU(ifp) gives the
correct mtu value

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->darrenr 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Mar 13 00:24:34 PST 2004 
Responsible-Changed-Why:  
Over to ipfilter author 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64167 
State-Changed-From-To: open->feedback 
State-Changed-By: darrenr 
State-Changed-When: Tue Apr 20 06:19:32 PDT 2004 
State-Changed-Why:  
will be incorporated with next ipfilter import & pullup 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64167 
State-Changed-From-To: feedback->closed 
State-Changed-By: darrenr 
State-Changed-When: Mon Jul 5 17:03:11 GMT 2004 
State-Changed-Why:  
fix now in -current 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64167 
>Unformatted:
