Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 392723

Summary: sys-apps/openrc incorrectly sets subnet mask for 6to4 as /16
Product: Gentoo Hosted Projects Reporter: MaratIK <marat.buharov>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: openrc:oldnet
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 394205    

Description MaratIK 2011-12-01 09:30:02 UTC
As said in http://en.wikipedia.org/wiki/6to4
ipv4 address has corresponding 2002:xxxx:xxxx::/48 prefix
But in script /lib/rc/net/ip6to4.sh incorrectly generates prefix with /16 mask:

                # Now apply our IPv6 address to our config
                new="${new}${new:+ }${ip6}/16"

So pinging any other 2002::/16 host leads to result: Destination host unreachable

As the fix I propose to change /16 to /48 in file /lib/rc/net/ip6to4.sh:

                # Now apply our IPv6 address to our config
                new="${new}${new:+ }${ip6}/48"


Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2011-12-10 04:13:32 UTC
The fix you suggested is in commit 8ea1190.
Thanks for the report.