summaryrefslogtreecommitdiffstats
path: root/src/openvpn/route.h
diff options
context:
space:
mode:
authorJosh Cepek <josh.cepek@usa.net>2013-02-21 09:50:38 -0600
committerGert Doering <gert@greenie.muc.de>2013-03-14 16:38:09 +0100
commit6c61d0dd339084175f6911d8b713faaf4967ca03 (patch)
tree657091a418738eb8962afed5747a5e7f3b0e84e9 /src/openvpn/route.h
parent704d9273b6e0e253b62eb728fddd5bbb02503eea (diff)
downloadopenvpn-6c61d0dd339084175f6911d8b713faaf4967ca03.tar.gz
openvpn-6c61d0dd339084175f6911d8b713faaf4967ca03.tar.xz
openvpn-6c61d0dd339084175f6911d8b713faaf4967ca03.zip
Fix parameter listing in non-debug builds at verb 4
When built with enable_debug=no, the parameter output expected at --verb 4 is not printed due to use of #ifdef ENABLE_DEBUG in the responsible code sections. This appears to be a mistake when looking at the configure help text for enable_small and enable_debug. This change keys the relevant code off of enable_small instead, including the parameter listing when enale_small=no (the configure-script default.) Most of this code is in options.c, with some callers present in plugin.c/h and route.c/h. No function code is changed, just the #ifdef values to use the small feature instead of debug. This means builds no longer need enable_debug=yes in order to get the expected log output at verb 4. Signed-off-by: Josh Cepek <josh.cepek@usa.net> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <437RBuq1U8032S07.1361465626@web07.cms.usa.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/7361 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/route.h')
-rw-r--r--src/openvpn/route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/route.h b/src/openvpn/route.h
index e63db59..a40de32 100644
--- a/src/openvpn/route.h
+++ b/src/openvpn/route.h
@@ -290,7 +290,7 @@ void print_default_gateway(const int msglevel, const struct route_gateway_info *
#define TLA_LOCAL 2
int test_local_addr (const in_addr_t addr, const struct route_gateway_info *rgi);
-#ifdef ENABLE_DEBUG
+#ifndef ENABLE_SMALL
void print_route_options (const struct route_option_list *rol,
int level);
#endif