Someday the "ip" conversion must be dealt with.

First, I could not find all functions of netstat in ip command. Am I
missing something?
So, I guess it might be kept or replaced by another command (like ss).
As you guys know more than me, I'll consider ip can do whatever netstat
does.

If we drop "ifconfig, netstat and route" from busybox, the
"ip from busybox" must only need to replace the functions that
"ifconfig, netstat and route" does today. No need for more functions as
"ip rule ACTION" as, AFAIK, "ifconfig, netstat and route" cannot currently
deal with
"rule" at all. I guess we would need "ip address, route, link".

Is the size of "busybox with ip (only enabling functions on ip needed to
replaced ifconfig,
netstat and route)" bigger than "busybox with ifconfig, netstat and route,
without ip"?

229047 bytes - busybox_1.19.4-7(standard openrt)
218418 bytes - busybox without ifconfig, netstat, route
?????? bytes - busybox without ifconfig, netstat, route and with ip (I do
not have a clean and working build env to do it)

(these are .ipk size and not real squashfs usage but it gives a good idea)

The second problem is when someone wants to use the "standard ip".
Today, it will use the extra 70kb. So, keeping requiring the extra space is
no
big deal. Here, we would have a file conflict between packages: busybox and
ip.
This conflict is a general problem. The same occurs for someone that wants
to install a "full wget", "full procps".
So, we need a pretty solution for multiple provides of a command. Something
like update-alternatives
does in Linux Desktop. This is not directly related to do with "ip or not
ip".
Currently, I'm just a user of "opkg install --force-overwrite" but I feel
bad about "--force*".

Also, I'm considering that all arguments, when present, work both with
"busybox ip version" and with "standard ip" the same way.

Regards,


---
     Luiz Angelo Daros de Luca, Me.
            luizl...@gmail.com


2013/9/11 Bastian Bittorf <bitt...@bluebottle.com>

> * Patrick <patr...@lunatiki.de> [11.09.2013 07:57]:
> > > so we add ~80k to a standard built. i'am ok with this, because we
> > > also add a lot of features and possibilities which are simply not
> > > possible with ifconfig/route/netstat.
> > I think you must compare busybox with ip, ifconfig, netstat and route.
>
> i did exactly this and showed, that: if we drop ifconfig, netstat and
> route from busybox and add 'ip', the image will grow ~80 Kilobytes.
> (more than 1 eraseblock).
>
> bye, bastian
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to