summaryrefslogtreecommitdiff
path: root/tools/hv/hv_set_ifconfig.sh
diff options
context:
space:
mode:
authorAni Sinha <anisinha@redhat.com>2023-10-16 16:31:22 +0300
committerWei Liu <wei.liu@kernel.org>2023-11-11 02:27:46 +0300
commitc3803203bc5ec910a3eb06172cf6fb368e0e4390 (patch)
tree5017ee4809a7600c8e3bdf832e6fbc13c3da5086 /tools/hv/hv_set_ifconfig.sh
parentffc253263a1375a65fa6c9f62a893e9767fbebfa (diff)
downloadlinux-c3803203bc5ec910a3eb06172cf6fb368e0e4390.tar.xz
hv/hv_kvp_daemon: Some small fixes for handling NM keyfiles
Some small fixes: - lets make sure we are not adding ipv4 addresses in ipv6 section in keyfile and vice versa. - ADDR_FAMILY_IPV6 is a bit in addr_family. Test that bit instead of checking the whole value of addr_family. - Some trivial fixes in hv_set_ifconfig.sh. These fixes are proposed after doing some internal testing at Red Hat. CC: Shradha Gupta <shradhagupta@linux.microsoft.com> CC: Saurabh Sengar <ssengar@linux.microsoft.com> Fixes: 42999c904612 ("hv/hv_kvp_daemon:Support for keyfile based connection profile") Signed-off-by: Ani Sinha <anisinha@redhat.com> Reviewed-by: Shradha Gupta <Shradhagupta@linux.microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org> Message-ID: <20231016133122.2419537-1-anisinha@redhat.com>
Diffstat (limited to 'tools/hv/hv_set_ifconfig.sh')
-rwxr-xr-xtools/hv/hv_set_ifconfig.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hv/hv_set_ifconfig.sh b/tools/hv/hv_set_ifconfig.sh
index ae5a7a8249a2..440a91b35823 100755
--- a/tools/hv/hv_set_ifconfig.sh
+++ b/tools/hv/hv_set_ifconfig.sh
@@ -53,7 +53,7 @@
# or "manual" if no boot-time protocol should be used)
#
# address1=ipaddr1/plen
-# address=ipaddr2/plen
+# address2=ipaddr2/plen
#
# gateway=gateway1;gateway2
#
@@ -61,7 +61,7 @@
#
# [ipv6]
# address1=ipaddr1/plen
-# address2=ipaddr1/plen
+# address2=ipaddr2/plen
#
# gateway=gateway1;gateway2
#