44,8 → 44,9 |
|
#include "../../structures/packet/packet.h" |
|
#include "../nil_module.h" |
|
#include "eth.h" |
#include "eth_module.h" |
|
#define NAME "Ethernet protocol" |
|
62,11 → 63,12 |
ERROR_DECLARE; |
|
ipcarg_t phonehash; |
int networking_phone; |
|
async_set_client_connection( client_connection ); |
eth_globals.networking_phone = connect_to_service( SERVICE_NETWORKING ); |
networking_phone = connect_to_service( SERVICE_NETWORKING ); |
ERROR_PROPAGATE( pm_init()); |
if( ERROR_OCCURRED( eth_initialize()) |
if( ERROR_OCCURRED( nil_initialize( networking_phone )) |
|| ERROR_OCCURRED( REGISTER_ME( SERVICE_ETHERNET, & phonehash ))){ |
pm_destroy(); |
return ERROR_CODE; |