summaryrefslogtreecommitdiff
path: root/zebra/ipforward.h
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/ipforward.h')
-rw-r--r--zebra/ipforward.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/ipforward.h b/zebra/ipforward.h
index fe9f2db911..9884678c7a 100644
--- a/zebra/ipforward.h
+++ b/zebra/ipforward.h
@@ -21,6 +21,10 @@
#ifndef _ZEBRA_IPFORWARD_H
#define _ZEBRA_IPFORWARD_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int ipforward(void);
extern int ipforward_on(void);
extern int ipforward_off(void);
@@ -29,4 +33,8 @@ extern int ipforward_ipv6(void);
extern int ipforward_ipv6_on(void);
extern int ipforward_ipv6_off(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ZEBRA_IPFORWARD_H */