Date: Sun, 18 Feb 1996 00:33:26 +0900 From: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi) To: hackers@freebsd.org Subject: sysinstall bug? Message-ID: <199602171533.AAA06288@frig.mt.cs.keio.ac.jp>
next in thread | raw e-mail | index | archive | help
Hi!
I'm making PC-card ready floppy for 2.1.0R and I found a bug (?) of
original sysinstall. This bug has not fixed on -current.
--- 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));
}
--
HOSOKAWA, Tatsumi E-mail: hosokawa@mt.cs.keio.ac.jp
WWW homepage: http://www.mt.cs.keio.ac.jp/person/hosokawa.html
Department of Computer Science, Keio University, Yokohama, Japan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602171533.AAA06288>
