64,7 → 64,7 |
int netif_device_find( netif_device_id_t device_id, netif_device_ref * device ){ |
* device = netif_device_map_find( & netif_globals.netif_device_map, device_id ); |
if( ! * device ) return ENOENT; |
if(( ** device ).status == NETIF_NULL ) return EPERM; |
if(( ** device ).state == NETIF_NULL ) return EPERM; |
return EOK; |
} |
|
113,8 → 113,7 |
case NET_NETIF_REGISTER: |
case NET_LL_REGISTER: |
ERROR_PROPAGATE( netif_device_find( arg1, & device )); |
// TODO back phone |
device->ll_registered = callid; |
device->ll_registered = connect_to_service( arg2 ); |
return EOK; |
case NET_NETIF_SEND: |
return netif_send_message( arg1, arg2, arg3, result1, result2, result3 ); |
138,7 → 137,7 |
} |
|
int netif_start_module( void ( * client_connection )( ipc_callid_t iid, ipc_call_t * icall )){ |
/* services_t need[ 2 ]; |
services_t need[ 2 ]; |
int * need_phone[ 2 ]; |
|
need[ 0 ] = SERVICE_NETWORKING; |
145,8 → 144,8 |
need[ 1 ] = NULL; |
need_phone[ 0 ] = & netif_globals.networking_phone; |
need_phone[ 1 ] = NULL; |
*/ netif_device_map_initialize( & netif_globals.netif_device_map ); |
return start_service( NULL, /*need, need_phone*/ NULL, NULL, client_connection, netif_initialize ); |
netif_device_map_initialize( & netif_globals.netif_device_map ); |
return start_service( NULL, need, need_phone, client_connection, netif_initialize ); |
} |
|
/** @} |