Patch from dlively (whoever that is, see bug 591) to fix

"ip link set <dev> addr".
This commit is contained in:
Rob Landley 2005-12-15 05:29:48 +00:00
parent d42ef28b98
commit 483027f166

View 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();