]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virnetlink: Provide virNetlinkGetNeighbor non-Linux stub
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Mar 2018 07:44:20 +0000 (08:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Mar 2018 08:02:42 +0000 (09:02 +0100)
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

index f0a92db2342e5c4c4578b883bdd7b91d9a53e020..0e281b06b8750fd05b1a8ee7f3a02676be286a47 100644 (file)
@@ -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