Patch from dlively (whoever that is, see bug 591) to fix
authorRob Landley <rob@landley.net>
Thu, 15 Dec 2005 05:29:48 +0000 (05:29 -0000)
committerRob Landley <rob@landley.net>
Thu, 15 Dec 2005 05:29:48 +0000 (05:29 -0000)
"ip link set <dev> addr".

networking/libiproute/iplink.c

index 2550c196e493ef2cae628fefe7e80d77f158f0c3..b4493d67dc4c940fe849f2e1aaab7a8ac2997ca8 100644 (file)
@@ -285,6 +285,9 @@ static int do_set(int argc, char **argv)
                                flags |= IFF_NOARP;
                        } else
                                return on_off("noarp");
+               } else if (strcmp(*argv, "addr") == 0) {
+                       NEXT_ARG();
+                       newaddr = *argv;
                } else {
                         if (strcmp(*argv, "dev") == 0) {
                                NEXT_ARG();