Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392723 - sys-apps/openrc incorrectly sets subnet mask for 6to4 as /16
Summary: sys-apps/openrc incorrectly sets subnet mask for 6to4 as /16
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords:
Depends on:
Blocks: openrc-tracker
  Show dependency tree
 
Reported: 2011-12-01 09:30 UTC by MaratIK
Modified: 2013-04-25 23:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.