Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3685 → Rev 3684

/branches/network/uspace/srv/net/netif/netif.c
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 ).state == NETIF_NULL ) return EPERM;
if(( ** device ).status == NETIF_NULL ) return EPERM;
return EOK;
}
 
113,7 → 113,8
case NET_NETIF_REGISTER:
case NET_LL_REGISTER:
ERROR_PROPAGATE( netif_device_find( arg1, & device ));
device->ll_registered = connect_to_service( arg2 );
// TODO back phone
device->ll_registered = callid;
return EOK;
case NET_NETIF_SEND:
return netif_send_message( arg1, arg2, arg3, result1, result2, result3 );
137,7 → 138,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;
144,8 → 145,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, client_connection, netif_initialize );
*/ netif_device_map_initialize( & netif_globals.netif_device_map );
return start_service( NULL, /*need, need_phone*/ NULL, NULL, client_connection, netif_initialize );
}
 
/** @}