]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virnetlink: Provide stub for virNetlinkBridgeVlanFilterSet()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 12 May 2025 12:28:42 +0000 (14:28 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 14 May 2025 10:32:02 +0000 (12:32 +0200)
In virnetlink.c there are two sections: the first one when
building WITH_LIBNL support, the other that provides stubs for
functions declared in the corresponding header file when building
without netlink support. But the stub implementation for
virNetlinkBridgeVlanFilterSet() was missing.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virnetlink.c

index 206646d9d794d833de90266d4ab7cec015552137..e3fcabca15c9ad561aa387ff02dc7874dd007b2c 100644 (file)
@@ -1344,6 +1344,18 @@ virNetlinkNewLink(const char *ifname G_GNUC_UNUSED,
 }
 
 
+int
+virNetlinkBridgeVlanFilterSet(const char *ifname G_GNUC_UNUSED,
+                              int cmd G_GNUC_UNUSED,
+                              const unsigned short unusedflags G_GNUC_UNUSED,
+                              const short vid G_GNUC_UNUSED,
+                              int *error)
+{
+    *error = 0;
+    virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
+    return -1;
+}
+
 int
 virNetlinkGetNeighbor(void **nlData G_GNUC_UNUSED,
                       uint32_t src_pid G_GNUC_UNUSED,