87,7 → 87,7 |
* @returns EEXIST if the device with the different service exists. |
* @returns ENOMEM if there is not enough memory left. |
* @returns Other error codes as defined for the netif_bind_service() function. |
* @returns Other error codes as defined for the netif_get_addr() function. |
* @returns Other error codes as defined for the netif_get_addr_req() function. |
*/ |
int nildummy_device_message( device_id_t device_id, services_t service, size_t mtu ); |
|
208,7 → 208,7 |
return device->phone; |
} |
// get hardware address |
if( ERROR_OCCURRED( netif_get_addr( device->phone, device->device_id, & device->addr, & device->addr_data ))){ |
if( ERROR_OCCURRED( netif_get_addr_req( device->phone, device->device_id, & device->addr, & device->addr_data ))){ |
fibril_rwlock_write_unlock( & nildummy_globals.devices_lock ); |
free( device ); |
return ERROR_CODE; |