svn commit: trunk/busybox/networking/libiproute
vda at busybox.net
vda at busybox.net
Thu Oct 26 00:38:22 UTC 2006
Author: vda
Date: 2006-10-25 17:38:22 -0700 (Wed, 25 Oct 2006)
New Revision: 16439
Log:
ip: "ip addr del" and "ip addr delete" both should work
Modified:
trunk/busybox/networking/libiproute/ipaddress.c
Changeset:
Modified: trunk/busybox/networking/libiproute/ipaddress.c
===================================================================
--- trunk/busybox/networking/libiproute/ipaddress.c 2006-10-26 00:37:00 UTC (rev 16438)
+++ trunk/busybox/networking/libiproute/ipaddress.c 2006-10-26 00:38:22 UTC (rev 16439)
@@ -800,7 +800,7 @@
int do_ipaddr(int argc, char **argv)
{
static const char *const commands[] = {
- "add", "delete", "list", "show", "lst", "flush", 0
+ "add", "del", "delete", "list", "show", "lst", "flush", 0
};
int command_num = 2;
@@ -811,14 +811,15 @@
switch (command_num) {
case 0: /* add */
return ipaddr_modify(RTM_NEWADDR, argc-1, argv+1);
- case 1: /* delete */
+ case 1: /* del */
+ case 2: /* delete */
return ipaddr_modify(RTM_DELADDR, argc-1, argv+1);
- case 2: /* list */
- case 3: /* show */
- case 4: /* lst */
+ case 3: /* list */
+ case 4: /* show */
+ case 5: /* lst */
return ipaddr_list_or_flush(argc-1, argv+1, 0);
- case 5: /* flush */
+ case 6: /* flush */
return ipaddr_list_or_flush(argc-1, argv+1, 1);
}
- bb_error_msg_and_die("Unknown command %s", *argv);
+ bb_error_msg_and_die("unknown command %s", *argv);
}
More information about the busybox-cvs
mailing list