if (ip_addr == NULL || netmask == NULL || interface == NULL) {
ERR("Invalid parameter");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
if (netconfig_execute_file(path, args, envs) < 0) {
DBG("Failed to add a new route");
netconfig_error_permission_denied(context);
- return FALSE;
+ return TRUE;
}
break;
if (ip_addr == NULL || interface == NULL || gateway == NULL) {
ERR("Invalid parameter");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
buf = ip_addr;
if (netconfig_add_route_ipv6(ip_addr, interface, gateway, prefix_len) < 0) {
DBG("Failed to add a new route");
netconfig_error_permission_denied(context);
- return FALSE;
+ return TRUE;
}
break;
default:
DBG("Unknown Address Family");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
DBG("Successfully added a new route");
if (ip_addr == NULL || netmask == NULL || interface == NULL) {
DBG("Invalid parameter!");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
if (netconfig_execute_file(path, args, envs) < 0) {
DBG("Failed to remove the route");
netconfig_error_permission_denied(context);
- return FALSE;
+ return TRUE;
}
break;
case AF_INET6:
if (ip_addr == NULL || interface == NULL || gateway == NULL) {
DBG("Invalid parameter!");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
buf = ip_addr;
if (netconfig_del_route_ipv6(ip_addr, interface, gateway, prefix_len) < 0) {
DBG("Failed to remove the route");
netconfig_error_permission_denied(context);
- return FALSE;
+ return TRUE;
}
break;
default:
DBG("Unknown Address Family");
netconfig_error_invalid_parameter(context);
- return FALSE;
+ return TRUE;
}
DBG("Successfully removed the route");
if (ret != 0) {
DBG("Failed to get ethernet cable state");
netconfig_error_fail_ethernet_cable_state(context);
- return FALSE;
+ return TRUE;
}
DBG("Successfully get ethernet cable state[%d]", state);
if (address == NULL) {
DBG("Failed to get preferred IPv6 address");
netconfig_error_fail_preferred_ipv6_address(context);
- return FALSE;
+ return TRUE;
}
DBG("Successfully get preferred IPv6 address[%s]", address);