From 2e3f44beb332b75545a05d4a72b545b6aa8d0bf4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 13 Feb 2000 22:13:42 +0000 Subject: 2000-02-13 Roland McGrath * 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. --- pfinet/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pfinet/main.c') 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 -- cgit v1.2.3