Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 2008 15:02:52 GMT
From:      Henri Hennebert <hlh@restart.be>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/123465: route add -inet6 <ipv6_addr> -interface gif0 -proxy mangle ipv6 address
Message-ID:  <200805061502.m46F2qvD070644@www.freebsd.org>
Resent-Message-ID: <200805061510.m46FA3Q1093392@freefall.freebsd.org>

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

>Number:         123465
>Category:       bin
>Synopsis:       route add -inet6 <ipv6_addr> -interface gif0 -proxy mangle ipv6 address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>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:
>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:
>Unformatted:



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