Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4331 → Rev 4332

/branches/network/uspace/srv/net/il/ip/ip.c
113,7 → 113,7
}else{
ip_netif->ipv = DEFAULT_IPV;
}
ip_netif->dhcp = ! str_lcmp( configuration[ 1 ].value, "dhcp", 4 );
ip_netif->dhcp = ! str_lcmp( configuration[ 1 ].value, "dhcp", configuration[ 1 ].length );
if( ip_netif->dhcp ){
// TODO dhcp
net_free_settings( configuration, data );
240,19 → 240,19
}
 
int ip_device_state_msg( int il_phone, device_id_t device_id, device_state_t state ){
ERROR_DECLARE;
// ERROR_DECLARE;
 
ip_netif_ref netif;
 
measured_string_t address;
/* measured_string_t address;
measured_string_ref translation;
char * data;
 
*/
netif = ip_netifs_find( & ip_globals.netifs, device_id );
if( ! netif ) return ENOENT;
// TODO state
printf( "ip - device %d changed state to %d\n\n", device_id, state );
if( netif->arp ){
/* if( netif->arp ){
address.value = ( char * ) & netif->gateway;
address.length = CONVERT_SIZE( in_addr_t, char, 1 );
if( ERROR_OCCURRED( arp_translate_req( netif->arp->phone, netif->device_id, SERVICE_IP, & address, & translation, & data ))){
263,7 → 263,7
free( translation );
free( data );
}
return EOK;
*/ return EOK;
}
 
int ip_bind_service( services_t service, services_t me, async_client_conn_t receiver ){