char *ip = NULL;
char *subnet = NULL;
char *gateway = NULL;
+ char *dhcp_server = NULL;
+ int dhcp_lease_duration = 0;
char *dns1 = NULL;
char *dns2 = NULL;
char *proxy = NULL;
g_free(gateway);
}
+ if (connection_profile_get_dhcp_server_address(profile, address_family, &dhcp_server) != CONNECTION_ERROR_NONE)
+ printf("Fail to get DHCP Server address!\n");
+ else {
+ printf("DHCP Server : %s\n", dhcp_server);
+ g_free(dhcp_server);
+ }
+
+ if (connection_profile_get_dhcp_lease_duration(profile, address_family, &dhcp_lease_duration) != CONNECTION_ERROR_NONE)
+ printf("Fail to get DHCP lease duration!\n");
+ else {
+ printf("DHCP lease duration : %d\n", dhcp_lease_duration);
+ }
+
if (connection_profile_get_subnet_mask(profile, address_family, &subnet) != CONNECTION_ERROR_NONE)
printf("Fail to get subnet mask!\n");
else {
printf("x - Get ethernet cable state\n");
printf("B - Add IPv6 new route\n");
printf("C - Remove IPv6 route\n");
- printf("D - Get IPv6 address\n");
+ printf("D - Add new route entry\n");
+ printf("E - Remove route entry\n");
+ printf("F - Get all IPv6 address\n");
printf(LOG_RED "0 - Exit \n" LOG_END);
printf("ENTER - Show options menu.......\n");
}