summaryrefslogtreecommitdiff
path: root/pfinet/linux-src
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-02-13 22:13:42 +0000
committerRoland McGrath <roland@gnu.org>2000-02-13 22:13:42 +0000
commit2e3f44beb332b75545a05d4a72b545b6aa8d0bf4 (patch)
treecb91963fd7ab6a75e2e7b36dc7b688659515bb7f /pfinet/linux-src
parent32f4a3227bfaa651d5f7574c3c21ec915627e049 (diff)
2000-02-13 Roland McGrath <roland@baalperazim.frob.com>
* main.c (main): Call configure_device on loopback_dev. * linux-src/net/ipv4/devinet.c (configure_device): Call dev_change_flags with IFF_UP flag.
Diffstat (limited to 'pfinet/linux-src')
-rw-r--r--pfinet/linux-src/net/ipv4/devinet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pfinet/linux-src/net/ipv4/devinet.c b/pfinet/linux-src/net/ipv4/devinet.c
index ed3d17c2..64525bb3 100644
--- a/pfinet/linux-src/net/ipv4/devinet.c
+++ b/pfinet/linux-src/net/ipv4/devinet.c
@@ -417,7 +417,7 @@ configure_device (struct device *dev,
ifa = inet_alloc_ifa ();
if (!ifa)
return ENOBUFS;
- memcpy(ifa->ifa_label, dev->name, IFNAMSIZ);
+ memcpy (ifa->ifa_label, dev->name, IFNAMSIZ);
}
if (addr != INADDR_NONE)
@@ -432,7 +432,8 @@ configure_device (struct device *dev,
ifa->ifa_broadcast = 0;
}
- return - inet_set_ifa (dev, ifa);
+ return - (inet_set_ifa (dev, ifa)
+ ?: dev_change_flags (dev, dev->flags | IFF_UP));
}
void