mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Clean up after virNetDevIP creation
Commit cf0568b0af4e moved a bunch of functions from virNetDev to the more specific virNetDevIP; however, not all of the existing uses were moved properly, causing build failures on FreeBSD. Complete the transition to the new names and drop the obsolete declarations from the header file while at it.
This commit is contained in:
parent
014dd11291
commit
7970436ec4
@ -124,27 +124,6 @@ int virNetDevGetOnline(const char *ifname,
|
|||||||
bool *online)
|
bool *online)
|
||||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
|
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,
|
int virNetDevSetMAC(const char *ifname,
|
||||||
const virMacAddr *macaddr)
|
const virMacAddr *macaddr)
|
||||||
|
@ -647,7 +647,7 @@ virNetDevIPRouteAdd(const char *ifname,
|
|||||||
|
|
||||||
/* return after DAD finishes for all known IPv6 addresses or an error */
|
/* return after DAD finishes for all known IPv6 addresses or an error */
|
||||||
int
|
int
|
||||||
virNetDevWaitDadFinish(virSocketAddrPtr *addrs ATTRIBUTE_UNUSED,
|
virNetDevIPWaitDadFinish(virSocketAddrPtr *addrs ATTRIBUTE_UNUSED,
|
||||||
size_t count ATTRIBUTE_UNUSED)
|
size_t count ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virReportSystemError(ENOSYS, "%s",
|
virReportSystemError(ENOSYS, "%s",
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include "vircrypto.h"
|
#include "vircrypto.h"
|
||||||
#include "virmock.h"
|
#include "virmock.h"
|
||||||
#include "virnetdev.h"
|
#include "virnetdev.h"
|
||||||
|
#include "virnetdevip.h"
|
||||||
#include "virnetdevtap.h"
|
#include "virnetdevtap.h"
|
||||||
#include "virnuma.h"
|
#include "virnuma.h"
|
||||||
#include "virrandom.h"
|
#include "virrandom.h"
|
||||||
@ -127,7 +128,7 @@ virNetDevSetMAC(const char *ifname ATTRIBUTE_UNUSED,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int virNetDevSetIPAddress(const char *ifname ATTRIBUTE_UNUSED,
|
int virNetDevIPAddrAdd(const char *ifname ATTRIBUTE_UNUSED,
|
||||||
virSocketAddr *addr ATTRIBUTE_UNUSED,
|
virSocketAddr *addr ATTRIBUTE_UNUSED,
|
||||||
virSocketAddr *peer ATTRIBUTE_UNUSED,
|
virSocketAddr *peer ATTRIBUTE_UNUSED,
|
||||||
unsigned int prefix ATTRIBUTE_UNUSED)
|
unsigned int prefix ATTRIBUTE_UNUSED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user