Date: Sat, 20 Jul 2013 18:14:12 +0200 From: Michael Grimm <trashcan@odo.in-berlin.de> To: Hiroki Sato <hrs@FreeBSD.org> Cc: freebsd-stable@FreeBSD.org Subject: Re: ipv6_addrs_IF aliases in rc.conf(5) Message-ID: <5C2419E4-D5B7-4F1A-AED0-90EF7330503C@odo.in-berlin.de> In-Reply-To: <20130720.234623.829852506076930312.hrs@allbsd.org> References: <20130712.160358.1330135778606339435.hrs@allbsd.org> <EB3C4472-02BF-4415-BB2D-B4929063D796@odo.in-berlin.de> <20130718.123323.1730389945845032580.hrs@allbsd.org> <20130720.234623.829852506076930312.hrs@allbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20.07.2013, at 16:46, Hiroki Sato <hrs@FreeBSD.org> wrote: > Hiroki Sato <hrs@freebsd.org> wrote in = <20130718.123323.1730389945845032580.hrs@allbsd.org>: > hr> Michael Grimm <trashcan@odo.in-berlin.de> wrote > hr> in <EB3C4472-02BF-4415-BB2D-B4929063D796@odo.in-berlin.de>: > hr> > hr> tr> On 12.07.2013, at 09:03, Hiroki Sato <hrs@FreeBSD.org> wrote: > hr> tr> > hr> tr> > Please let me know if the existing configurations and/or the = new > hr> tr> > formats do not work. > hr> tr> > hr> tr> First of all: great work! It is that much easier to deal with = aliases, now. > hr> tr> > hr> tr> There is only one minor issue, if at all: > hr> tr> > hr> tr> rc.conf: > hr> tr> | ifconfig_em0_ipv6=3D"inet6 dead:beef:1111:2222::1 prefixlen = 56" > hr> tr> | ifconfig_em0_aliases=3D"\ > hr> tr> | inet6 dead:beef:1111:2222::2-3 prefixlen 56 \ > hr> tr> | inet6 dead:beef:1111:2222::4 prefixlen 56 \ > hr> tr> | inet6 dead:beef:1111:2222::5-6/56" > hr> tr> > hr> tr> ifconfig: > hr> tr> | inet6 dead:beef:1111:2222::1 prefixlen 56 > hr> tr> | inet6 dead:beef:1111:2222::2 prefixlen 64 > hr> tr> | inet6 dead:beef:1111:2222::3 prefixlen 64 > hr> tr> | inet6 dead:beef:1111:2222::4 prefixlen 56 > hr> tr> | inet6 dead:beef:1111:2222::5 prefixlen 56 > hr> tr> | inet6 dead:beef:1111:2222::6 prefixlen 56 > hr> tr> > hr> tr> Any combination of a range definition (2-3) *and* "prefixlen = 56"is ignored > hr> tr> whereas a range definition (5-6) *and* "/56" is interpreted as = wanted. > hr> tr> > hr> tr> Well, that combination of a range and "prefix" isn't = documented, thus I am > hr> tr> not sure if that's an issue or a feature? > hr> > hr> It seems a bug. Thank you for your report. I am investigating = it now. >=20 > Can you test the attached patch? The old version (in stable/9 now) > does not support "address range spec + options" properly and ignore > the options part. >=20 > The attached patch accepts options and treats "netmask" for inet and > "prefixlen" in inet6 in a reasonable way so that the specified > options do not conflict with the default /NN values. I can confirm that your patch is working for my examples used before.=20 Now, a range definition and "prefixlen 56" is recognized properly: ifconfig: | inet6 dead:beef:1111:2222::2 prefixlen 56=20 | inet6 dead:beef:1111:2222::3 prefixlen 56=20 | inet6 dead:beef:1111:2222::4 prefixlen 56=20 | inet6 dead:beef:1111:2222::5 prefixlen 56=20 | inet6 dead:beef:1111:2222::6 prefixlen 56=20 Thanks and with kind regards, Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5C2419E4-D5B7-4F1A-AED0-90EF7330503C>