- support ip link set eth1 address 00:11:22:33:44:55
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 30 Oct 2008 16:45:55 +0000 (16:45 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 30 Oct 2008 16:45:55 +0000 (16:45 -0000)
  and not only the shorthand "addr". Thanks to ncopa for noticing

networking/libiproute/iplink.c

index 3b212eed9e09208943aba7346850df47a228f052..dc936bdc56ab04a36e198341f8a9376df7180c7a 100644 (file)
@@ -174,7 +174,7 @@ static int do_set(char **argv)
        char *newname = NULL;
        int htype, halen;
        static const char keywords[] ALIGN1 =
-               "up\0""down\0""name\0""mtu\0""multicast\0""arp\0""addr\0""dev\0";
+               "up\0""down\0""name\0""mtu\0""multicast\0""arp\0""address\0""dev\0";
        enum { ARG_up = 0, ARG_down, ARG_name, ARG_mtu, ARG_multicast, ARG_arp,
                ARG_addr, ARG_dev };
        static const char str_on_off[] ALIGN1 = "on\0""off\0";