[libvirt] [PATCH 2/2] virnetlink: Provide virNetlinkGetNeighbor non-Linux stub

Michal Privoznik posted 2 patches 7 years, 9 months ago
[libvirt] [PATCH 2/2] virnetlink: Provide virNetlinkGetNeighbor non-Linux stub
Posted by Michal Privoznik 7 years, 9 months ago
This function is exported and therefore we have to have
implementation for all platforms.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---
 src/util/virnetlink.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/util/virnetlink.c b/src/util/virnetlink.c
index f0a92db234..0e281b06b8 100644
--- a/src/util/virnetlink.c
+++ b/src/util/virnetlink.c
@@ -1207,6 +1207,17 @@ virNetlinkDelLink(const char *ifname ATTRIBUTE_UNUSED,
     return -1;
 }
 
+
+int
+virNetlinkGetNeighbor(void **nlData ATTRIBUTE_UNUSED,
+                      uint32_t src_pid ATTRIBUTE_UNUSED,
+                      uint32_t dst_pid ATTRIBUTE_UNUSED)
+{
+    virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
+    return -1;
+}
+
+
 /**
  * stopNetlinkEventServer: stop the monitor to receive netlink
  * messages for libvirtd
-- 
2.16.1

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