[PATCH] first pass at the "ip" patch

Rob Landley rob at landley.net
Sun Apr 16 21:55:05 UTC 2006


On Friday 14 April 2006 7:37 pm, Glenn L. McGrath wrote:
> On Fri, 14 Apr 2006 18:32:21 -0400 (EDT)
>
> "Robert P. J. Day" <rpjday at mindspring.com> wrote:
> > ok, no problem, i was just asking.  OTOH, is its functionality exactly
> > equivalent to one or more of the other applets?  that way, maybe we
> > can just combine a few things.
>
> Its a convenience, it just parses a config file and derives and runs the
> appropiate ifconfig and route, or ip commands.
>
> If you know the syntax for ifconfig && route or ip then you could
> create a script much smaller than the size of ifupdown.

This is why I've never cared about it. :)

> But ifupdown is the standard debian way to bring up and shut down
> interfaces, it is a very nice luxury to have for some people.
>
> I think debian-installer may also use it, not 100% sure.

I haven't looked at the current busybox implementation: is it shelling out to 
ifconfig and route, or is it doing internal library stuff?

I suspect shelling out is probably the way to go here.  We haven't currently 
got a clean networking library to reuse, and ifconfig and route are pretty 
straightforward commands.  Plus it's nicer with make standalone, and doesn't 
assume you're using the busybox networking stuff either.

But as I said, I haven't looked at it...

> Glenn

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list