Skip to content
Snippets Groups Projects
Commit 55dc646a authored by Guy Zana's avatar Guy Zana
Browse files

net: start the loopback device on 127.0.0.1

parent 57a6f673
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,9 @@ extern "C" {
#include <sys/time.h>
#include <bsd/porting/netport.h>
#include <bsd/porting/networking.h>
#include <bsd/porting/route.h>
#include <bsd/sys/sys/libkern.h>
#include <bsd/sys/sys/eventhandler.h>
#include <bsd/sys/sys/mbuf.h>
......@@ -63,5 +66,10 @@ void net_init(void)
if_attachdomain(NULL);
vnet_loif_init();
/* Start the loopback device */
osv_start_if("lo0", "127.0.0.1", NULL, 24);
osv_ifup("lo0");
debug("Done!");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment