NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/49371: ipv6 routes missing netmasks



>Number:         49371
>Category:       kern
>Synopsis:       ipv6 routes missing netmasks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 06 17:50:00 +0000 2014
>Originator:     epoch
>Release:        6.1.4
>Organization:
hacking.allowed
>Environment:
NetBSD armitage 6.1.4 NetBSD 6.1.4 (ARMITAGE) #5: Fri Oct 24 23:27:16 CDT 2014  root@armitage:/usr/obj/sys/arch/i386/compile/ARMITAGE i386
>Description:
Something isn't treating ipv6 routes right. I noticed that netstat gets the netmasks right, but route doesn't. This bug also affects the Bird Internet Routing Daemon and probably any other program that reads the routes from the kernel routing table in the same way they both do. I'm not sure if this counts as a kernel bug for breaking the interface route uses or a userland program problem for not acting the way netstat does.
>How-To-Repeat:
compare the outputs of:
netstat -rnf inet6
and
route -n show -inet6

example:
bash-4.3# route -n show -inet6 | head -n 17 | tail -n5
2001:470:1f10:a1c::1               2001:470:1f10:a1c::2           UH
2001:470:1f10:a1c::2               link#4                         UHL
2001:470:1f11:a1c::                link#1                         U
2001:470:1f11:a1c::1               00:30:84:27:05:11              UHL
2001:db8::                         ::1                            UGR
bash-4.3# netstat -rnf inet6 | head -n17 | tail -n5
2001:470:1f10:a1c::1               2001:470:1f10:a1c::2           UH          1        0      -  gif0
2001:470:1f10:a1c::2               link#4             UHL         1        0      -  lo0
2001:470:1f11:a1c::/64             link#1             UC          0        0      -  rtk0
2001:470:1f11:a1c::1               00:30:84:27:05:11  UHL         0      245      -  lo0
2001:db8::/32                      ::1                            UGRS        0        0      -  lo0


>Fix:
Sorry, I don't know.



Home | Main Index | Thread Index | Old Index