summaryrefslogtreecommitdiff
path: root/pfinet/main.c
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/main.c
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/main.c')
-rw-r--r--pfinet/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pfinet/main.c b/pfinet/main.c
index 01dc24be..3e4db13e 100644
--- a/pfinet/main.c
+++ b/pfinet/main.c
@@ -206,6 +206,10 @@ main (int argc,
After this, we can use `register_netdevice' for new interfaces. */
net_dev_init ();
+ /* ifconfig lo up 127.0.0.1 netmask 0xff000000 */
+ configure_device (&loopback_dev,
+ htonl (INADDR_LOOPBACK), htonl (IN_CLASSA_NET));
+
__mutex_unlock (&global_lock);
/* Parse options. When successful, this configures the interfaces