patch: IP autoconfig over FDDI

Mike Fisk (mfisk@lanl.gov)
Wed, 26 Aug 1998 18:42:37 -0600 (MDT)


The IP autoconfig code (formerly booting off the net) ignores all network
devices of type >= ARPHRD_SLIP. This removes the "non ARP hardware":

/* Dummy types for non ARP hardware */
#define ARPHRD_SLIP 256
#define ARPHRD_CSLIP 257
#define ARPHRD_SLIP6 258
#define ARPHRD_CSLIP6 259
#define ARPHRD_RSRVD 260 /* Notional KISS type */
#define ARPHRD_ADAPT 264
#define ARPHRD_ROSE 270
#define ARPHRD_PPP 512

But it also rules out the following:

#define ARPHRD_TUNNEL 768 /* IPIP tunnel */
#define ARPHRD_TUNNEL6 769 /* IPIP6 tunnel */
#define ARPHRD_FRAD 770 /* Frame Relay Access Device */
#define ARPHRD_SKIP 771 /* SKIP vif */
#define ARPHRD_LOOPBACK 772 /* Loopback device */
#define ARPHRD_LOCALTLK 773 /* Localtalk device */
#define ARPHRD_FDDI 774 /* Fiber Distributed Data
Interface */

Now my particular problem is that FDDI is a perfectly good device to
autoconfig. Further, why not allow autoconfig on any device? If you have
a device up why not allow ARP/BOOTP over it?

This code has remain unchanged (although it has moved from
fs/nfs/nfsroot.c) since at least 2.0.

The following patch to net/ipv4/ipconfig.c (2.1.118) removes the check:

--- ipconfig.c 1998/08/26 18:52:01 1.1
+++ ipconfig.c 1998/08/26 18:52:41
@@ -103,8 +103,7 @@

last = &ic_first_dev;
for (dev = dev_base; dev; dev = dev->next)
- if (dev->type < ARPHRD_SLIP &&
- !(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) &&
+ if (!(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) &&
strncmp(dev->name, "dummy", 5) &&
(!user_dev_name[0] || !strcmp(dev->name, user_dev_name))) {
oflags = dev->flags;

=====================================================================
Mike Fisk | (505)667-5119 | MS B255
Network Engineering (CIC-5) | | Los Alamos National Lab
mfisk@lanl.gov | FAX: 665-7793 | Los Alamos, NM 87545

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html