Date: Mon, 26 Feb 1996 17:20:53 +0900 From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) To: bugs@freebsd.org Cc: hosokawa@mt.cs.keio.ac.jp Subject: sysinstall bug Message-ID: <199602260820.RAA10660@frig.mt.cs.keio.ac.jp>
next in thread | raw e-mail | index | archive | help
sysinstall can't find any network device that is probed after tun0. hosokawa --- devices.c.orig Wed Nov 15 15:57:02 1995 +++ devices.c Sat Feb 17 18:53:59 1996 @@ -319,8 +319,9 @@ continue; /* Eliminate network devices that don't make sense */ if (!strncmp(ifptr->ifr_name, "tun", 3) + || !strncmp(ifptr->ifr_name, "sl", 2) || !strncmp(ifptr->ifr_name, "lo0", 3)) - continue; + goto loopend; deviceRegister(ifptr->ifr_name, ifptr->ifr_name, ifptr->ifr_name, DEVICE_TYPE_NETWORK, TRUE, mediaInitNetwork, NULL, NULL, mediaShutdownNetwork, NULL); msgDebug("Found a device of type network named: %s\n", ifptr->ifr_name); @@ -330,6 +331,7 @@ msgConfirm("ifconfig: socket"); continue; } +loopend: if (ifptr->ifr_addr.sa_len) /* I'm not sure why this is here - it's inherited */ ifptr = (struct ifreq *)((caddr_t)ifptr + ifptr->ifr_addr.sa_len - sizeof(struct sockaddr)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602260820.RAA10660>