Set default command to list rather than get, its default behaviour now
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 11 Aug 2004 08:10:58 +0000 (08:10 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 11 Aug 2004 08:10:58 +0000 (08:10 -0000)
coincides with upstream. Patch from debian diff.

networking/libiproute/iproute.c

index 7adbfcd..9c57140 100644 (file)
@@ -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);
 }
-