summaryrefslogtreecommitdiffstats
path: root/zebra/if_netlink.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-05 23:02:40 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:27:08 +0200
commitc3bd894e4d2395d2bc72b0d7a94984f04e93adb1 (patch)
tree98d97da198271e7486ad4519328f7bb97f5fae16 /zebra/if_netlink.h
parentvrrpd: add support for VRRPv2 (diff)
downloadfrr-c3bd894e4d2395d2bc72b0d7a94984f04e93adb1.tar.xz
frr-c3bd894e4d2395d2bc72b0d7a94984f04e93adb1.zip
vrrpd: protodown macvlan in backup state
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/if_netlink.h')
-rw-r--r--zebra/if_netlink.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/zebra/if_netlink.h b/zebra/if_netlink.h
index 710fd5255..29fd2aca3 100644
--- a/zebra/if_netlink.h
+++ b/zebra/if_netlink.h
@@ -32,6 +32,20 @@ extern int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id,
extern int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup);
extern int interface_lookup_netlink(struct zebra_ns *zns);
+/*
+ * Set protodown status of interface.
+ *
+ * ifp
+ * Interface to set protodown on.
+ *
+ * down
+ * If true, set protodown on. If false, set protodown off.
+ *
+ * Returns:
+ * 0
+ */
+int netlink_protodown(struct interface *ifp, bool down);
+
#ifdef __cplusplus
}
#endif