hv/hv_kvp_daemon: Some small fixes for handling NM keyfiles
authorAni Sinha <anisinha@redhat.com>
Mon, 16 Oct 2023 13:31:22 +0000 (19:01 +0530)
committerWei Liu <wei.liu@kernel.org>
Fri, 10 Nov 2023 23:27:46 +0000 (23:27 +0000)
commitc3803203bc5ec910a3eb06172cf6fb368e0e4390
tree5017ee4809a7600c8e3bdf832e6fbc13c3da5086
parentffc253263a1375a65fa6c9f62a893e9767fbebfa
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>
tools/hv/hv_kvp_daemon.c
tools/hv/hv_set_ifconfig.sh