42,6 → 42,8 |
#include "../../err.h" |
#include "../../modules.h" |
|
#include "../../include/net_interface.h" |
|
#include "../../structures/packet/packet.h" |
|
#include "ip.h" |
49,22 → 51,23 |
|
#define NAME "IP protocol" |
|
void ip_print_name( void ); |
int ip_start_module( async_client_conn_t client_connection ); |
void module_print_name( void ); |
int module_start( async_client_conn_t client_connection ); |
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
|
extern ip_globals_t ip_globals; |
|
void ip_print_name( void ){ |
void module_print_name( void ){ |
printf( "%s", NAME ); |
} |
|
int ip_start_module( async_client_conn_t client_connection ){ |
int module_start( async_client_conn_t client_connection ){ |
ERROR_DECLARE; |
|
ipcarg_t phonehash; |
|
async_set_client_connection( client_connection ); |
ip_globals.networking_phone = connect_to_service( SERVICE_NETWORKING ); |
ip_globals.net_phone = net_connect_module( SERVICE_NETWORKING ); |
ERROR_PROPAGATE( pm_init()); |
if( ERROR_OCCURRED( ip_initialize()) |
|| ERROR_OCCURRED( REGISTER_ME( SERVICE_IP, & phonehash ))){ |
78,5 → 81,9 |
return EOK; |
} |
|
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ){ |
return ip_message( callid, call, answer, answer_count ); |
} |
|
/** @} |
*/ |