Set default command to list rather than get, its default behaviour now

coincides with upstream. Patch from debian diff.
This commit is contained in:
Glenn L McGrath 2004-08-11 08:10:58 +00:00
parent fcf47321d4
commit 4014ab1c60

View File

@ -809,7 +809,7 @@ int do_iproute(int argc, char **argv)
{ {
const char *ip_route_commands[] = { "add", "append", "change", "chg", const char *ip_route_commands[] = { "add", "append", "change", "chg",
"delete", "del", "get", "list", "show", "prepend", "replace", "test", "flush", 0 }; "delete", "del", "get", "list", "show", "prepend", "replace", "test", "flush", 0 };
unsigned short command_num = 6; unsigned short command_num = 7;
unsigned int flags = 0; unsigned int flags = 0;
int cmd = RTM_NEWROUTE; int cmd = RTM_NEWROUTE;
@ -850,4 +850,3 @@ int do_iproute(int argc, char **argv)
return iproute_modify(cmd, flags, argc-1, argv+1); return iproute_modify(cmd, flags, argc-1, argv+1);
} }