Antonio Dias wrote:
Patrick McHardy <[EMAIL PROTECTED]> wrote:
It was broken in a CVS version, not sure if it ever was released. No one
wants to remove it.
Alright but... it was removed! See:
[EMAIL PROTECTED]:~# ip -V
ip utility, iproute2-ss051107
[EMAIL PROTECTED]:~# ip -4 address list dev eth0
Object "address" is unknown, try "ip help".
[EMAIL PROTECTED]:~# ip -4 addr list dev eth0
3: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.0.3/24 brd 192.168.0.255 scope global eth0
Indeed, it seems quite a few commands got lost. This patch restores
them.
Index: ip/ip.c
===================================================================
RCS file: /repos/iproute2/ip/ip.c,v
retrieving revision 1.10
diff -u -r1.10 ip.c
--- ip/ip.c 24 Oct 2005 16:26:25 -0000 1.10
+++ ip/ip.c 22 Nov 2005 03:49:54 -0000
@@ -62,13 +62,15 @@
const char *cmd;
int (*func)(int argc, char **argv);
} cmds[] = {
- { "addr", do_ipaddr },
- { "maddr", do_multiaddr },
+ { "address", do_ipaddr },
+ { "maddress", do_multiaddr },
{ "route", do_iproute },
{ "rule", do_iprule },
- { "neigh", do_ipneigh },
+ { "neighbour", do_ipneigh },
+ { "neighbor", do_ipneigh },
{ "link", do_iplink },
{ "tunnel", do_iptunnel },
+ { "tunl", do_iptunnel },
{ "monitor", do_ipmonitor },
{ "xfrm", do_xfrm },
{ "mroute", do_multiroute },