[PATCHv5 06/18] Renamed virNetDevClearIPv4Address to virNetDevClearIPAddress

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Make clear that virNetDevClearIPv4Address can also handle IPv6
addresses by changing the name
---
 src/libvirt_private.syms |  2 +-
 src/util/virnetdev.c     | 14 +++++++-------
 src/util/virnetdev.h     |  6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 98f773d..514c3d4 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1618,7 +1618,7 @@ virMacAddrSetRaw;
 # util/virnetdev.h
 virNetDevAddMulti;
 virNetDevAddRoute;
-virNetDevClearIPv4Address;
+virNetDevClearIPAddress;
 virNetDevDelMulti;
 virNetDevExists;
 virNetDevGetIndex;
diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c
index 0948e7b..64c14e0 100644
--- a/src/util/virnetdev.c
+++ b/src/util/virnetdev.c
@@ -1053,7 +1053,7 @@ virNetDevAddRoute(const char *ifname,
 }
 
 /**
- * virNetDevClearIPv4Address:
+ * virNetDevClearIPAddress:
  * @ifname: the interface name
  * @addr: the IP address (IPv4 or IPv6)
  * @prefix: number of 1 bits in the netmask
@@ -1062,9 +1062,9 @@ virNetDevAddRoute(const char *ifname,
  *
  * Returns 0 in case of success or -1 in case of error.
  */
-int virNetDevClearIPv4Address(const char *ifname,
-                              virSocketAddr *addr,
-                              unsigned int prefix)
+int virNetDevClearIPAddress(const char *ifname,
+                            virSocketAddr *addr,
+                            unsigned int prefix)
 {
     int ret = -1;
     struct nl_msg *nlmsg = NULL;
@@ -1176,9 +1176,9 @@ virNetDevAddRoute(const char *ifname,
     return ret;
 }
 
-int virNetDevClearIPv4Address(const char *ifname,
-                              virSocketAddr *addr,
-                              unsigned int prefix)
+int virNetDevClearIPAddress(const char *ifname,
+                            virSocketAddr *addr,
+                            unsigned int prefix)
 {
     virCommandPtr cmd = NULL;
     char *addrstr;
diff --git a/src/util/virnetdev.h b/src/util/virnetdev.h
index 14d6a79..19e17cf 100644
--- a/src/util/virnetdev.h
+++ b/src/util/virnetdev.h
@@ -98,9 +98,9 @@ int virNetDevAddRoute(const char *ifname,
                       unsigned int metric)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
     ATTRIBUTE_RETURN_CHECK;
-int virNetDevClearIPv4Address(const char *ifname,
-                              virSocketAddr *addr,
-                              unsigned int prefix)
+int virNetDevClearIPAddress(const char *ifname,
+                            virSocketAddr *addr,
+                            unsigned int prefix)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
 int virNetDevGetIPv4Address(const char *ifname, virSocketAddrPtr addr)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
-- 
2.1.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]