> > Alias interfaces are a legacy from IPv4 and aren't really supported in > > IPv6. > > You miss the point here, I talk about alias sections which are mapped to > "ifconfig iface add ip6addr" during processing.
I think the one IP per interface principle is a legacy thinking. Yes for the Webinterface it's easier if it is so. You could write all IP addresses space separated in a single textbox. But thats less semantic and worse for input validation. But in the new thinking of IPv6 alias interfaces doesn't exist any more. They are multiple IP addresses of the same interface now. Maybe the configuration registry should respect this? In the praxis there ist currently the problem, that the ip6addr of the alias interface becomes the main IP of the real interface, because they are added at least. At least this should be fixed. > > Is there a reverse foreach? I need it for adding the IPv6 addresses in > > the right order. The main ip must be added at last. > > None that I'm aware of. If there isn't, implementing the code with only a normal foreach would be much more awful then my current code. In the BusyBox shell unfortunately there aren't any array, list or stack constructs. > > My code is secure. Only ifconfig has a ambiguous syntax. > > Of course ;) Why not switch to iproute2? But this is an other story... Alina _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
