diff options
author | David Sommerseth <davids@redhat.com> | 2012-01-24 12:32:46 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-01-25 18:00:10 +0100 |
commit | 415421c24ac5b62d59fb8f03076521cba6f126cc (patch) | |
tree | 7340ff0ec74131afb722445878e2a5b667331d6a /openvpn-plugin.h | |
parent | 62c613d46dc495d747074ca030d2cbdfd255c386 (diff) | |
download | openvpn-415421c24ac5b62d59fb8f03076521cba6f126cc.tar.gz openvpn-415421c24ac5b62d59fb8f03076521cba6f126cc.tar.xz openvpn-415421c24ac5b62d59fb8f03076521cba6f126cc.zip |
Add --route-pre-down/OPENVPN_PLUGIN_ROUTE_PREDOWN script/plug-in hook
This patchs adds a script/plug-in hook which is called right before the
network routes are taken down. This gives external processes a
possibility to tear down communication over the VPN before the VPN
disappears.
One use case can be to mount a networked file system over the VPN via
--route-up. And then to unmount this file system via --route-pre-down
Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'openvpn-plugin.h')
-rw-r--r-- | openvpn-plugin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openvpn-plugin.h b/openvpn-plugin.h index 474c910..de54a5a 100644 --- a/openvpn-plugin.h +++ b/openvpn-plugin.h @@ -108,7 +108,8 @@ #define OPENVPN_PLUGIN_CLIENT_CONNECT_V2 9 #define OPENVPN_PLUGIN_TLS_FINAL 10 #define OPENVPN_PLUGIN_ENABLE_PF 11 -#define OPENVPN_PLUGIN_N 12 +#define OPENVPN_PLUGIN_ROUTE_PREDOWN 12 +#define OPENVPN_PLUGIN_N 13 /* * Build a mask out of a set of plug-in types. |