bin/123465: route add -inet6 <ipv6_addr> -interface gif0 -proxy mangle ipv6 address

Henri Hennebert hlh at restart.be
Tue May 6 15:10:03 UTC 2008


>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:


More information about the freebsd-bugs mailing list