From 6c401d89e229fe24cb35b4758f1abb3cfb1cc966 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Apr 2012 21:52:21 +0200 Subject: Allow peer-to-peer forwarding --- src/config.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 1842891..964c2d6 100644 --- a/src/config.c +++ b/src/config.c @@ -64,6 +64,8 @@ static void default_config(fastd_config *conf) { conf->mtu = 1500; conf->mode = MODE_TAP; + conf->peer_to_peer = false; + conf->protocol = &fastd_protocol_null; conf->secret = NULL; conf->key_valid = 3600; /* 60 minutes */ @@ -394,6 +396,11 @@ void fastd_configure(fastd_context *ctx, fastd_config *conf, int argc, char *con continue; } + IF_OPTION("--peer-to-peer") { + conf->peer_to_peer = true; + continue; + } + IF_OPTION_ARG("--on-up") { free(conf->on_up); free(conf->on_up_dir); -- cgit v1.2.3