Set default command to list rather than get, its default behaviour now
coincides with upstream. Patch from debian diff.
This commit is contained in:
parent
fcf47321d4
commit
4014ab1c60
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user