Moved the starting of the network stack into the driver (from the socket module)

to allow other protocols (like TCP) using the socket module.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19399 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-11-30 17:56:17 +00:00
parent 5131b5bcf6
commit 41c6726359
2 changed files with 17 additions and 4 deletions
@@ -892,12 +892,14 @@ socket_std_ops(int32 op, ...)
switch (op) {
case B_MODULE_INIT:
{
// TODO: this is currently done in the net_stack driver
// initialize the main stack if not done so already
module_info *module;
return get_module(NET_STARTER_MODULE_NAME, &module);
//module_info *module;
//return get_module(NET_STARTER_MODULE_NAME, &module);
}
case B_MODULE_UNINIT:
return put_module(NET_STARTER_MODULE_NAME);
//return put_module(NET_STARTER_MODULE_NAME);
return B_OK;
default:
return B_ERROR;