diff --git a/src/util/virnetdev.h b/src/util/virnetdev.h index 849f8e74d5b206426bf9649e9a7b496a495967d3..c3e8ffce9f0e9a047f23d0f3fe86c4811cd274e8 100644 --- a/src/util/virnetdev.h +++ b/src/util/virnetdev.h @@ -124,27 +124,6 @@ int virNetDevGetOnline(const char *ifname, bool *online) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK; -int virNetDevSetIPAddress(const char *ifname, - virSocketAddr *addr, - virSocketAddr *peer, - unsigned int prefix) - ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK; -int virNetDevAddRoute(const char *ifname, - virSocketAddrPtr addr, - unsigned int prefix, - virSocketAddrPtr gateway, - unsigned int metric) - ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(4) - ATTRIBUTE_RETURN_CHECK; -int virNetDevClearIPAddress(const char *ifname, - virSocketAddr *addr, - unsigned int prefix) - ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK; -int virNetDevGetIPAddress(const char *ifname, virSocketAddrPtr addr) - ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK; -int virNetDevWaitDadFinish(virSocketAddrPtr *addrs, size_t count) - ATTRIBUTE_NONNULL(1); - int virNetDevSetMAC(const char *ifname, const virMacAddr *macaddr) diff --git a/src/util/virnetdevip.c b/src/util/virnetdevip.c index 20f3ae1d4824bd6927079259a708474ae97495af..f8b04e42bbe5e56fe4b9892b2e774512485be72f 100644 --- a/src/util/virnetdevip.c +++ b/src/util/virnetdevip.c @@ -647,8 +647,8 @@ virNetDevIPRouteAdd(const char *ifname, /* return after DAD finishes for all known IPv6 addresses or an error */ int -virNetDevWaitDadFinish(virSocketAddrPtr *addrs ATTRIBUTE_UNUSED, - size_t count ATTRIBUTE_UNUSED) +virNetDevIPWaitDadFinish(virSocketAddrPtr *addrs ATTRIBUTE_UNUSED, + size_t count ATTRIBUTE_UNUSED) { virReportSystemError(ENOSYS, "%s", _("Unable to wait for IPv6 DAD on this platform")); diff --git a/tests/qemuxml2argvmock.c b/tests/qemuxml2argvmock.c index b99496a6a19015e809bcbd1ecb72db877fe48d6a..e0ec2db4d81a5b7575fc26e0861339601558b235 100644 --- a/tests/qemuxml2argvmock.c +++ b/tests/qemuxml2argvmock.c @@ -26,6 +26,7 @@ #include "vircrypto.h" #include "virmock.h" #include "virnetdev.h" +#include "virnetdevip.h" #include "virnetdevtap.h" #include "virnuma.h" #include "virrandom.h" @@ -127,10 +128,10 @@ virNetDevSetMAC(const char *ifname ATTRIBUTE_UNUSED, return 0; } -int virNetDevSetIPAddress(const char *ifname ATTRIBUTE_UNUSED, - virSocketAddr *addr ATTRIBUTE_UNUSED, - virSocketAddr *peer ATTRIBUTE_UNUSED, - unsigned int prefix ATTRIBUTE_UNUSED) +int virNetDevIPAddrAdd(const char *ifname ATTRIBUTE_UNUSED, + virSocketAddr *addr ATTRIBUTE_UNUSED, + virSocketAddr *peer ATTRIBUTE_UNUSED, + unsigned int prefix ATTRIBUTE_UNUSED) { return 0; }