Add bsd-stubs for nat functionality
Commit Message
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
batman/bsd/tun.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
@@ -89,6 +89,20 @@ static int open_tun_any(char *dev_name, size_t dev_name_size)
}
#endif
+/* Probe for iptables binary availability */
+int probe_nat_tool(void) {
+ fprintf(stderr, "probe_nat_tool: not implemented\n");
+ return -1;
+}
+
+void add_nat_rule(char *BATMANUNUSED(dev)) {
+ fprintf(stderr, "add_nat_rule: not implemented\n");
+}
+
+void del_nat_rule(char *BATMANUNUSED(dev)) {
+ fprintf(stderr, "del_nat_rule: not implemented\n");
+}
+
/* Probe for tun interface availability */
int8_t probe_tun(uint8_t BATMANUNUSED(print_to_stderr))
{