From patchwork Fri Feb 6 18:00:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5371 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (8.14.3/8.13.4/Debian-3sarge3) with SMTP id n16I1rqw004879 for ; Fri, 6 Feb 2009 18:01:54 GMT Received: (qmail invoked by alias); 06 Feb 2009 18:00:34 -0000 Received: from unknown (EHLO localhost) [88.130.173.182] by mail.gmx.net (mp066) with SMTP; 06 Feb 2009 19:00:35 +0100 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX1+15pZAvie1QjFY/5UKrG8SsCLglLRMrTzyeDYhQ8 E75WQ1ahRJ6eqJ From: Sven Eckelmann To: b.a.t.m.a.n@open-mesh.net Date: Fri, 6 Feb 2009 19:00:26 +0100 Message-Id: <1233943226-24592-2-git-send-email-sven.eckelmann@gmx.de> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <200901140236.58441.sven.eckelmann@gmx.de> References: <200901140236.58441.sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 Subject: [B.A.T.M.A.N.] [PATCH] Add bsd-stubs for nat functionality X-BeenThere: b.a.t.m.a.n@open-mesh.net X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 18:01:54 -0000 Signed-off-by: Sven Eckelmann --- 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)) {