svn commit: trunk/busybox/networking/libiproute

Denys Vlasenko vda.linux at googlemail.com
Fri Oct 31 01:02:17 UTC 2008


On Thursday 30 October 2008 17:45, aldot at busybox.net wrote:
> Author: aldot
> Date: 2008-10-30 09:45:55 -0700 (Thu, 30 Oct 2008)
> New Revision: 23862
> 
> Log:
> - support ip link set eth1 address 00:11:22:33:44:55
>   and not only the shorthand "addr". Thanks to ncopa for noticing

> -		"up\0""down\0""name\0""mtu\0""multicast\0""arp\0""addr\0""dev\0";
> +		"up\0""down\0""name\0""mtu\0""multicast\0""arp\0""address\0""dev\0";

Now "address" will be accepted, but "addr" won't.
But it seems "addr" is a valid specifier too:

bash-3.2# ip link set eth1 address 00:11:22:33:44:55
SIOCGIFINDEX: No such device

bash-3.2# ip link set eth1 addr 00:11:22:33:44:55
SIOCGIFINDEX: No such device

bash-3.2# ip link set eth1 adzdr 00:11:22:33:44:55
Error: either "dev" is duplicate, or "adzdr" is a garbage.

Obviously, it wasn't upset by addr.

The above is from iproute2-2.6.16-060323.
--
vda



More information about the busybox mailing list