diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-08-11 12:10:58 +0400 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-08-11 12:10:58 +0400 |
commit | 4014ab1c6072bc6c2e9604c06960779b191ee566 (patch) | |
tree | 57b60eecea4dc2627bf92adf6ce0040707b3e1e1 /networking | |
parent | fcf47321d4b121cd2de73c8d29fface50e192ae2 (diff) |
Set default command to list rather than get, its default behaviour now
coincides with upstream. Patch from debian diff.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/libiproute/iproute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 7adbfcd61..9c57140a5 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c @@ -809,7 +809,7 @@ int do_iproute(int argc, char **argv) { const char *ip_route_commands[] = { "add", "append", "change", "chg", "delete", "del", "get", "list", "show", "prepend", "replace", "test", "flush", 0 }; - unsigned short command_num = 6; + unsigned short command_num = 7; unsigned int flags = 0; int cmd = RTM_NEWROUTE; @@ -850,4 +850,3 @@ int do_iproute(int argc, char **argv) return iproute_modify(cmd, flags, argc-1, argv+1); } - |