summaryrefslogtreecommitdiff
path: root/zebra/rule_netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/rule_netlink.h')
-rw-r--r--zebra/rule_netlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/rule_netlink.h b/zebra/rule_netlink.h
index 4547a1bb3b..8c4741dc06 100644
--- a/zebra/rule_netlink.h
+++ b/zebra/rule_netlink.h
@@ -26,6 +26,10 @@
#ifdef HAVE_NETLINK
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Handle netlink notification informing a rule add or delete.
*/
@@ -36,6 +40,10 @@ extern int netlink_rule_change(struct nlmsghdr *h, ns_id_t ns_id, int startup);
*/
extern int netlink_rules_read(struct zebra_ns *zns);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* HAVE_NETLINK */
#endif /* _ZEBRA_RULE_NETLINK_H */