aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/hv/Makefile4
-rw-r--r--tools/hv/hv_kvp_daemon.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/hv/Makefile b/tools/hv/Makefile
index bd22f786a60c..99ffe61051a7 100644
--- a/tools/hv/Makefile
+++ b/tools/hv/Makefile
@@ -5,9 +5,9 @@ PTHREAD_LIBS = -lpthread
5WARNINGS = -Wall -Wextra 5WARNINGS = -Wall -Wextra
6CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS) 6CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS)
7 7
8all: hv_kvp_daemon hv_vss_daemon 8all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
9%: %.c 9%: %.c
10 $(CC) $(CFLAGS) -o $@ $^ 10 $(CC) $(CFLAGS) -o $@ $^
11 11
12clean: 12clean:
13 $(RM) hv_kvp_daemon hv_vss_daemon 13 $(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
index 6a6432a20a1d..4b3ee3521bde 100644
--- a/tools/hv/hv_kvp_daemon.c
+++ b/tools/hv/hv_kvp_daemon.c
@@ -1308,16 +1308,17 @@ static int kvp_set_ip_info(char *if_name, struct hv_kvp_ipaddr_value *new_val)
1308 if (error) 1308 if (error)
1309 goto setval_error; 1309 goto setval_error;
1310 1310
1311 /*
1312 * The dhcp_enabled flag is only for IPv4. In the case the host only
1313 * injects an IPv6 address, the flag is true, but we still need to
1314 * proceed to parse and pass the IPv6 information to the
1315 * disto-specific script hv_set_ifconfig.
1316 */
1311 if (new_val->dhcp_enabled) { 1317 if (new_val->dhcp_enabled) {
1312 error = kvp_write_file(file, "BOOTPROTO", "", "dhcp"); 1318 error = kvp_write_file(file, "BOOTPROTO", "", "dhcp");
1313 if (error) 1319 if (error)
1314 goto setval_error; 1320 goto setval_error;
1315 1321
1316 /*
1317 * We are done!.
1318 */
1319 goto setval_done;
1320
1321 } else { 1322 } else {
1322 error = kvp_write_file(file, "BOOTPROTO", "", "none"); 1323 error = kvp_write_file(file, "BOOTPROTO", "", "none");
1323 if (error) 1324 if (error)
@@ -1345,7 +1346,6 @@ static int kvp_set_ip_info(char *if_name, struct hv_kvp_ipaddr_value *new_val)
1345 if (error) 1346 if (error)
1346 goto setval_error; 1347 goto setval_error;
1347 1348
1348setval_done:
1349 fclose(file); 1349 fclose(file);
1350 1350
1351 /* 1351 /*