91,7 → 91,7 |
return EOK; |
} |
|
int ip_device_req( int il_phone, device_id_t device_id, services_t service ){ |
int ip_device_req( int il_phone, device_id_t device_id, services_t netif ){ |
ERROR_DECLARE; |
|
ip_netif_ref ip_netif; |
149,9 → 149,9 |
} |
net_free_settings( configuration, data ); |
} |
ip_netif->phone = bind_service( service, ip_netif->device_id, SERVICE_IP, 0, ip_driver_receiver ); |
ip_netif->phone = bind_service( netif, ip_netif->device_id, SERVICE_IP, 0, ip_driver_receiver ); |
if( ip_netif->phone < 0 ){ |
printf( "Failed to contact the nil service %d\n", service ); |
printf( "Failed to contact the nil service %d\n", netif ); |
free( ip_netif ); |
return ip_netif->phone; |
} |
158,7 → 158,7 |
if( ip_netif->arp ){ |
configuration[ 0 ].value = ( char * ) & ip_netif->address; |
configuration[ 0 ].length = CONVERT_SIZE( in_addr_t, char, 1 ); |
if( ERROR_OCCURRED( arp_device_req( ip_netif->arp->phone, ip_netif->device_id, SERVICE_IP, service, & configuration[ 0 ] ))){ |
if( ERROR_OCCURRED( arp_device_req( ip_netif->arp->phone, ip_netif->device_id, SERVICE_IP, netif, & configuration[ 0 ] ))){ |
free( ip_netif ); |
return ERROR_CODE; |
} |