From nobody@FreeBSD.org  Tue May  6 15:03:45 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3FAF2106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 May 2008 15:03:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 34F8B8FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 May 2008 15:03:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m46F2qr7070645
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 May 2008 15:02:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m46F2qvD070644;
	Tue, 6 May 2008 15:02:52 GMT
	(envelope-from nobody)
Message-Id: <200805061502.m46F2qvD070644@www.freebsd.org>
Date: Tue, 6 May 2008 15:02:52 GMT
From: Henri Hennebert <hlh@restart.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: route add -inet6 <ipv6_addr> -interface gif0 -proxy mangle ipv6 address
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         123465
>Category:       bin
>Synopsis:       [ip6] route(8): route add -inet6 <ipv6_addr> -interface gif0 -proxy mangle ipv6 address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 06 15:10:03 UTC 2008
>Closed-Date:    
>Last-Modified:  Sat Jun 14 06:17:33 UTC 2008
>Originator:     Henri Hennebert
>Release:        FreeBSD-7.0-RELEASE
>Organization:
>Environment:
FreeBSD tignes.restart.be 7.0-RELEASE-p1-rst1 FreeBSD 7.0-RELEASE-p1 #0: Sat May  3 16:01:04 CEST 2008     
>Description:
If you try to add a ipv6 proxy address like:

route add -inet6 2001:41d0:1:2ad2:1::/80 -interface gif0 -proxy

at line 734 of /usr/src/sbin/route/route.c


    if (proxy) {
-->     so_dst.sinarp.sin_other = SIN_PROXY;                                                                            
        flags |= RTF_ANNOUNCE;

`so_dst.sinarp.sin_other = SIN_PROXY;'

mangles the ipv6 address!

Henri
>How-To-Repeat:
route add -inet6 2001:41d0:1:2ad2:1::/80 -interface gif0 -proxy

>Fix:
For inet6, remove the offending line...

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sun May 11 21:58:44 UTC 2008 
Responsible-Changed-Why:  

Over to maintainer(s). 

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