Re: 2.1.7? ip aliasing ifconfig down broken

Philip Blundell (Philip.Blundell@pobox.com)
Wed, 31 Dec 1997 00:08:15 +0000


>Its an ifconfig bug actually. It doesnt rewrite its command string and
>because what it gets back as undefined from the kernel is now the
>master device not unchanged it downs the master

So it does. I guess this will fix it.

--- ifconfig.c~ Sun Nov 9 14:23:32 1997
+++ ifconfig.c Wed Dec 31 00:07:19 1997
@@ -656,6 +656,7 @@
fprintf(stderr, "%s: unknown interface.\n", ifname);
return -1;
}
+ strcpy(ifr.ifr_name, ifname);
ifr.ifr_flags &= ~flag;
if (ioctl(skfd, SIOCSIFFLAGS, &ifr) < 0) {
perror("SIOCSIFFLAGS");

p.