From 76809cae0eae07817160b423d3f9551df1a1d68e Mon Sep 17 00:00:00 2001 From: Jan Just Keijser Date: Tue, 7 Feb 2012 16:29:47 +0100 Subject: Made some options connection-entry specific The following options may now be used in a connection block: fragment mssfix tun-mtu tun-mtu-extra link-mtu mtu_discover_type explicit-exit-notification In order to support stuff like remote host proto udp fragment explicit-exit-notification 3 remote host proto tcp Signed-off-by: Jan Just Keijser Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- sig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sig.c') diff --git a/sig.c b/sig.c index d73525f..a5703f0 100644 --- a/sig.c +++ b/sig.c @@ -300,8 +300,8 @@ process_explicit_exit_notification_timer_wakeup (struct context *c) &c->c2.timeval, ETT_DEFAULT)) { - ASSERT (c->c2.explicit_exit_notification_time_wait && c->options.explicit_exit_notification); - if (now >= c->c2.explicit_exit_notification_time_wait + c->options.explicit_exit_notification) + ASSERT (c->c2.explicit_exit_notification_time_wait && c->options.ce.explicit_exit_notification); + if (now >= c->c2.explicit_exit_notification_time_wait + c->options.ce.explicit_exit_notification) { event_timeout_clear (&c->c2.explicit_exit_notification_interval); c->sig->signal_received = SIGTERM; @@ -340,7 +340,7 @@ process_sigterm (struct context *c) { bool ret = true; #ifdef ENABLE_OCC - if (c->options.explicit_exit_notification + if (c->options.ce.explicit_exit_notification && !c->c2.explicit_exit_notification_time_wait) { process_explicit_exit_notification_init (c); -- cgit