summaryrefslogtreecommitdiffstats
path: root/plugin/firewall/eurephiafw.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-12-14 18:47:58 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-12-14 18:47:58 +0100
commit6440a3a4592a8c0f0f8fd50cd551b41c1e066efe (patch)
treeca70948f4f3ee7e4993e2359948102c5631c770b /plugin/firewall/eurephiafw.c
parent64318873ac1aa92e6377a1a4a53932bcce78d187 (diff)
downloadeurephia-6440a3a4592a8c0f0f8fd50cd551b41c1e066efe.tar.gz
eurephia-6440a3a4592a8c0f0f8fd50cd551b41c1e066efe.tar.xz
eurephia-6440a3a4592a8c0f0f8fd50cd551b41c1e066efe.zip
Implemented proper TUN support in eurephia
Now eurephia will support both TUN and TAP configurations in OpenVPN. Thanks to Tavis Paquette and Matthew Gyurgyik for their willingness to test out this patch. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'plugin/firewall/eurephiafw.c')
-rw-r--r--plugin/firewall/eurephiafw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/firewall/eurephiafw.c b/plugin/firewall/eurephiafw.c
index d443e76..4ec2980 100644
--- a/plugin/firewall/eurephiafw.c
+++ b/plugin/firewall/eurephiafw.c
@@ -472,7 +472,7 @@ int eFW_UpdateFirewall(eurephiaCTX *ctx, eFWupdateRequest *request ) {
eurephia_log(ctx, LOG_INFO, 3,
"Function call: eFW_UpdateFirewall(ctx, %s, '%.18s', '%s', '%s')",
(request->mode == fwADD ? "ADD" : "DELETE"),
- request->macaddress,
+ (ctx->tuntype == tuntype_TAP ? request->macaddress : request->ipaddress),
request->rule_destination,
request->goto_destination);
errno = 0;