diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-29 16:07:43 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-29 16:07:43 +0000 |
commit | 0b4ffe1f5f17b1a00907d053bb35d8e83b7fe487 (patch) | |
tree | 1c8b31a1a97784a907de730479a46d02a0592cfa /loader/net.c | |
parent | a4a652efd63859bc69441e0d39cdc763aa6a2ecb (diff) | |
download | anaconda-0b4ffe1f5f17b1a00907d053bb35d8e83b7fe487.tar.gz anaconda-0b4ffe1f5f17b1a00907d053bb35d8e83b7fe487.tar.xz anaconda-0b4ffe1f5f17b1a00907d053bb35d8e83b7fe487.zip |
bring up loopback interface
Diffstat (limited to 'loader/net.c')
-rw-r--r-- | loader/net.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/loader/net.c b/loader/net.c index 21d7e4764..030035b64 100644 --- a/loader/net.c +++ b/loader/net.c @@ -116,6 +116,17 @@ static void fillInIpInfo(struct networkDeviceConfig * cfg) { } } +void initLoopback(void) { + struct pumpNetIntf dev; + + strcpy(dev.device, "lo"); + inet_aton("127.0.0.1", &dev.ip); + inet_aton("255.0.0.0", &dev.netmask); + dev.set = PUMP_INTFINFO_HAS_NETMASK | PUMP_INTFINFO_HAS_IP; + + pumpSetupInterface(&dev); +} + static void dhcpBoxCallback(newtComponent co, void * ptr) { struct intfconfig_s * c = ptr; @@ -401,7 +412,7 @@ int kickstartNetwork(char * device, struct networkDeviceConfig * netDev, char ** ksArgv; int ksArgc; int netSet, rc; - char * bootProto = NULL; + char * bootProto = "dhcp"; char * arg, * chptr; poptContext optCon; struct in_addr * parseAddress; |