summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2012-10-29 14:38:30 +0100
committerDavid Sommerseth <davids@redhat.com>2012-10-29 15:39:33 +0100
commit3b8d116d3d9dbe2fac786311db8b2bec53d88c77 (patch)
tree52774d5108d44176ee61f72fcc15d4939f4a189d
parentad0cc02234e17ab1f43488c4393059ea1c9d8f95 (diff)
downloadopenvpn-3b8d116d3d9dbe2fac786311db8b2bec53d88c77.tar.gz
openvpn-3b8d116d3d9dbe2fac786311db8b2bec53d88c77.tar.xz
openvpn-3b8d116d3d9dbe2fac786311db8b2bec53d88c77.zip
Fix display of plugin hook types
The OPENVPN_PLUGIN_ROUTE_PREDOWN hook was missing and displayed as "PLUGIN_???" in the log. OPENVPN_PLUGIN_ENABLE_PF was the only one that displayed the OPENVPN_ prefix. Signed-off-by: Heiko Hund <heiko.hund@sophos.com> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 1351517910-11414-1-git-send-email-heiko.hund@sophos.com URL: http://article.gmane.org/gmane.network.openvpn.devel/7111 Signed-off-by: David Sommerseth <davids@redhat.com> (cherry picked from commit ae303d444c11984b87e0046c4138982d7a41fd8b)
-rw-r--r--src/openvpn/plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvpn/plugin.c b/src/openvpn/plugin.c
index 944d833..83f79e4 100644
--- a/src/openvpn/plugin.c
+++ b/src/openvpn/plugin.c
@@ -98,7 +98,9 @@ plugin_type_name (const int type)
case OPENVPN_PLUGIN_TLS_FINAL:
return "PLUGIN_TLS_FINAL";
case OPENVPN_PLUGIN_ENABLE_PF:
- return "OPENVPN_PLUGIN_ENABLE_PF";
+ return "PLUGIN_ENABLE_PF";
+ case OPENVPN_PLUGIN_ROUTE_PREDOWN:
+ return "PLUGIN_ROUTE_PREDOWN";
default:
return "PLUGIN_???";
}