Lines Matching refs:cmd
706 static void kvp_process_ipconfig_file(char *cmd, in kvp_process_ipconfig_file() argument
718 file = popen(cmd, "r"); in kvp_process_ipconfig_file()
741 char cmd[512]; in kvp_get_ipconfig_info() local
749 sprintf(cmd, "%s %s", "ip route show dev", if_name); in kvp_get_ipconfig_info()
750 strcat(cmd, " | awk '/default/ {print $3 }'"); in kvp_get_ipconfig_info()
755 kvp_process_ipconfig_file(cmd, (char *)buffer->gate_way, in kvp_get_ipconfig_info()
761 sprintf(cmd, "%s %s", "ip -f inet6 route show dev", if_name); in kvp_get_ipconfig_info()
762 strcat(cmd, " | awk '/default/ {print $3 }'"); in kvp_get_ipconfig_info()
767 kvp_process_ipconfig_file(cmd, (char *)buffer->gate_way, in kvp_get_ipconfig_info()
786 sprintf(cmd, "%s", "hv_get_dns_info"); in kvp_get_ipconfig_info()
791 kvp_process_ipconfig_file(cmd, (char *)buffer->dns_addr, in kvp_get_ipconfig_info()
803 sprintf(cmd, "%s %s", "hv_get_dhcp_info", if_name); in kvp_get_ipconfig_info()
805 file = popen(cmd, "r"); in kvp_get_ipconfig_info()
1184 char cmd[512]; in kvp_set_ip_info() local
1309 snprintf(cmd, sizeof(cmd), "%s %s", "hv_set_ifconfig", if_file); in kvp_set_ip_info()
1310 if (system(cmd)) { in kvp_set_ip_info()
1312 cmd, errno, strerror(errno)); in kvp_set_ip_info()