[PATCH] remove obsolete(?) code that handles net if aliases
Rob Landley
rob at landley.net
Wed Jun 21 02:02:09 UTC 2006
On Tuesday 20 June 2006 7:35 pm, Rob Landley wrote:
> On Tuesday 20 June 2006 6:21 pm, Robert P. J. Day wrote:
> > > Oh you can still do aliases. Try "ifconfig eth1:1 192.168.255.42".
> > > But that doesn't show up in /proc/net/dev, there seems to be some
> > > kind of ioctl done to detect that. (Or at least in Red Hat 9 is
> > > doing so, Ubuntu Flatulent Badger isn't showing it in the big
> > > "ifconfig" list, but is remembering the info when I "ifconfig
> > > eth0:1"...)
> >
> > sorry, i phrased that badly. i realize that aliases are still
> > possible but, as you note, they no longer show up in /proc/net/dev,
> > and apparently haven't for a while. hence my suggestion of dead code
> > that could be removed.
>
> I confirmed they didn't in Red Hat 9 (my "how did an old 2.4 system do it"
> test environment).
Oddly, the current busybox code (with the removed hunk) gets it right on a Red
Hat 9 system, but does _not_ get it right on my 2.6 Ubuntu kernel. If you
list all interfaces on RH9 it shows the eth0:1, but doesn't on Ubuntu.
I have no idea what's up with that, but it appears to be a kernel thing.
Remove that code snippet at least didn't break anything _new_...
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list