linux-2.1.81 proposed patch to avoid bootp on whitehole interface

Adam J. Richter (adam@yggdrasil.com)
Sun, 25 Jan 1998 20:58:46 -0800


The networking autoconfiguration facility in the kernel seems
to think that it makes sense to run BOOTP on the "whitehole" network
interface, although it is smart enough to know it should not try running
RARP on it. This causes the kernel to look like it is actually trying
to configure its network interfaces with bootp in situations where it
actually has failed to find an ethernet card. Anyhow, I believe this
is patch is correct, although I would encourage someone else to look
at it, because I am not quite sure that exactly the whitehole interface
is for.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

----------------------------CUT HERE---------------------------------------

*** /tmp/linux-2.1.81.orig/net/ipv4/ipconfig.c Tue Jan 20 12:11:57 1998
--- linux/net/ipv4/ipconfig.c Sun Jan 25 20:49:41 1998
***************
*** 104,113 ****
--- 104,114 ----
last = &ic_first_dev;
for (dev = dev_base; dev; dev = dev->next)
if (dev->type < ARPHRD_SLIP &&
!(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) &&
strncmp(dev->name, "dummy", 5) &&
+ strncmp(dev->name, "whitehole", 9) &&
(!user_dev_name[0] || !strcmp(dev->name, user_dev_name))) {
oflags = dev->flags;
if (dev_change_flags(dev, oflags | IFF_UP) < 0) {
printk(KERN_ERR "IP-Config: Failed to open %s\n", dev->name);
continue;