20 #include "modules/Module.h" 21 #include "modules/system/network-stack/NetworkStack.h" 22 #include "pedigree/kernel/Log.h" 23 #include "pedigree/kernel/Service.h" 24 #include "pedigree/kernel/ServiceManager.h" 25 #include "pedigree/kernel/machine/DeviceHashTree.h" 26 #include "pedigree/kernel/processor/Processor.h" 32 static int configureInterfaces()
35 DeviceHashTree::instance().
fill();
56 ByteSet(&ipaddr, 0,
sizeof(ipaddr));
57 ByteSet(&netmask, 0,
sizeof(netmask));
58 ByteSet(&gateway, 0,
sizeof(gateway));
60 netif_set_addr(iface, &ipaddr, &netmask, &gateway);
61 netif_set_ip6_autoconfig_enabled(iface, 1);
62 netif_create_ip6_linklocal_address(iface, 1);
72 configureInterfaces();
80 MODULE_INFO(
"confignics", &init, &destroy,
"network-stack",
"lwip");
81 MODULE_OPTIONAL_DEPENDS(
"nics",
"pcap");
Network * getDevice(size_t n)
void netif_set_up(struct netif *netif)
static NetworkStack & instance()
void fill(Device *root=0)
void netif_set_link_up(struct netif *netif)
struct netif * getInterface(Network *pCard) const