142,6 → 142,7 |
// TODO ARP module |
} |
// TODO arp module |
// TODO register |
free( settings ); |
free( data ); |
// end request |
148,23 → 149,23 |
// TODO mapping |
async_wait_for( message, NULL ); |
// print the settings |
printf( "\n -IPV =\t%d", ip_netif->ipv ); |
printf( "\n -configuration =\t%s", ip_netif->dhcp ? "dhcp" : "static" ); |
printf( "\nNew device registered:\n\tid\t= %d\n\tphone\t= %d\n\tIPV\t= %d", ip_netif->device_id, ip_netif->phone, ip_netif->ipv ); |
printf( "\n\tconfiguration\t= %s", ip_netif->dhcp ? "dhcp" : "static" ); |
// TODO ipv6 |
data = malloc( INET_ADDRSTRLEN ); |
if( data ){ |
inet_ntop( AF_INET, ( uint8_t * ) & ip_netif->address, data, INET_ADDRSTRLEN ); |
printf( "\n -address =\t%s", data ); |
printf( "\n\taddress\t= %s", data ); |
inet_ntop( AF_INET, ( uint8_t * ) & ip_netif->netmask, data, INET_ADDRSTRLEN ); |
printf( "\n -netmask =\t%s", data ); |
printf( "\n\tnetmask\t= %s", data ); |
inet_ntop( AF_INET, ( uint8_t * ) & ip_netif->gateway, data, INET_ADDRSTRLEN ); |
printf( "\n -gateway =\t%s", data ); |
printf( "\n\tgateway\t= %s", data ); |
inet_ntop( AF_INET, ( uint8_t * ) & ip_netif->broadcast, data, INET_ADDRSTRLEN ); |
printf( "\n -broadcast =\t%s", data ); |
printf( "\n\tbroadcast\t= %s", data ); |
inet_ntop( AF_INET, ( uint8_t * ) & ip_netif->dns1, data, INET_ADDRSTRLEN ); |
printf( "\n -dns1 =\t%s", data ); |
printf( "\n\tdns1\t= %s", data ); |
inet_ntop( AF_INET, ( uint8_t * ) & ip_netif->dns2, data, INET_ADDRSTRLEN ); |
printf( "\n -dns2 =\t%s", data ); |
printf( "\n\tdns2\t= %s", data ); |
free( data ); |
} |
// TODO mapping |
240,6 → 241,7 |
free( proto ); |
return ERROR_CODE; |
} |
printf( "\nNew protocol registered:\n\tprotocol\t= %d\n\tphone\t= %d", proto->protocol, proto->phone ); |
return EOK; |
} |
|