[B.A.T.M.A.N.] [PATCH] Add bsd-stubs for nat functionality

Sven Eckelmann sven.eckelmann at gmx.de
Fri Feb 6 18:00:26 UTC 2009


Signed-off-by: Sven Eckelmann <sven.eckelmann at gmx.de>
---
 batman/bsd/tun.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/batman/bsd/tun.c b/batman/bsd/tun.c
index b44dac3..3e75c4c 100644
--- a/batman/bsd/tun.c
+++ b/batman/bsd/tun.c
@@ -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))
 {
-- 
1.6.0.6




More information about the B.A.T.M.A.N mailing list