|
OpenVPN
|
#include "syshead.h"#include "options_show.h"#include "crypto.h"#include "error.h"#include "options.h"
Go to the source code of this file.
Macros | |
| #define | SHOW_PARM(name, value, format) msg(D_SHOW_PARMS, " " #name " = " format, (value)) |
| #define | SHOW_STR(var) SHOW_PARM(var, (o->var ? o->var : "[UNDEF]"), "'%s'") |
| #define | SHOW_STR_INLINE(var) SHOW_PARM(var, o->var##_inline ? "[INLINE]" : (o->var ? o->var : "[UNDEF]"), "'%s'") |
| #define | SHOW_INT(var) SHOW_PARM(var, o->var, "%d") |
| #define | SHOW_UINT(var) SHOW_PARM(var, o->var, "%u") |
| #define | SHOW_INT64(var) SHOW_PARM(var, o->var, "%" PRIi64) |
| #define | SHOW_UNSIGNED(var) SHOW_PARM(var, o->var, "0x%08x") |
| #define | SHOW_BOOL(var) SHOW_PARM(var, (o->var ? "ENABLED" : "DISABLED"), "%s"); |
Functions | |
| static const char * | pull_filter_type_name (int type) |
| static void | show_dhcp_option_list (const char *name, const char *const *array, unsigned int len) |
| static void | show_dhcp_option_addrs (const char *name, const in_addr_t *array, unsigned int len) |
| static void | show_tuntap_options (const struct tuntap_options *o) |
| static const char * | print_vlan_accept (enum vlan_acceptable_frames mode) |
| static void | show_p2mp_parms (const struct options *o) |
| static void | show_http_proxy_options (const struct http_proxy_options *o) |
| static void | show_connection_entry (const struct connection_entry *o) |
| static void | show_connection_entries (const struct options *o) |
| static void | show_pull_filter_list (const struct pull_filter_list *l) |
| void | show_settings (const struct options *o) |
| #define SHOW_BOOL | ( | var | ) | SHOW_PARM(var, (o->var ? "ENABLED" : "DISABLED"), "%s"); |
Definition at line 66 of file options_show.c.
| #define SHOW_INT | ( | var | ) | SHOW_PARM(var, o->var, "%d") |
Definition at line 62 of file options_show.c.
| #define SHOW_INT64 | ( | var | ) | SHOW_PARM(var, o->var, "%" PRIi64) |
Definition at line 64 of file options_show.c.
| #define SHOW_PARM | ( | name, | |
| value, | |||
| format | |||
| ) | msg(D_SHOW_PARMS, " " #name " = " format, (value)) |
Definition at line 58 of file options_show.c.
| #define SHOW_STR | ( | var | ) | SHOW_PARM(var, (o->var ? o->var : "[UNDEF]"), "'%s'") |
Definition at line 59 of file options_show.c.
| #define SHOW_STR_INLINE | ( | var | ) | SHOW_PARM(var, o->var##_inline ? "[INLINE]" : (o->var ? o->var : "[UNDEF]"), "'%s'") |
Definition at line 60 of file options_show.c.
| #define SHOW_UINT | ( | var | ) | SHOW_PARM(var, o->var, "%u") |
Definition at line 63 of file options_show.c.
| #define SHOW_UNSIGNED | ( | var | ) | SHOW_PARM(var, o->var, "0x%08x") |
Definition at line 65 of file options_show.c.
|
static |
Definition at line 115 of file options_show.c.
References VLAN_ALL, VLAN_ONLY_TAGGED, and VLAN_ONLY_UNTAGGED_OR_PRIORITY.
Referenced by show_p2mp_parms().
|
static |
Definition at line 38 of file options_show.c.
References PUF_TYPE_ACCEPT, PUF_TYPE_IGNORE, and PUF_TYPE_REJECT.
Referenced by show_pull_filter_list().
|
static |
Definition at line 308 of file options_show.c.
References options::connection_list, D_SHOW_PARMS, connection_list::len, msg, and show_connection_entry().
Referenced by show_settings().
|
static |
Definition at line 251 of file options_show.c.
References connection_entry::af, local_list::array, bind_local(), D_SHOW_PARMS, connection_entry::http_proxy_options, connection_entry::key_direction, keydirection2ascii(), local_list::len, local_entry::local, connection_entry::local_list, msg, local_entry::port, local_entry::proto, connection_entry::proto, proto2ascii(), SHOW_BOOL, show_http_proxy_options(), SHOW_INT, SHOW_PARM, SHOW_STR, and SHOW_STR_INLINE.
Referenced by show_connection_entries().
|
static |
Definition at line 80 of file options_show.c.
References D_SHOW_PARMS, gc, gc_free(), gc_new(), msg, and print_in_addr_t().
Referenced by show_tuntap_options().
|
static |
Definition at line 71 of file options_show.c.
References D_SHOW_PARMS, and msg.
Referenced by show_tuntap_options().
|
static |
Definition at line 222 of file options_show.c.
References http_custom_header::content, http_proxy_options::custom_headers, D_SHOW_PARMS, MAX_CUSTOM_HTTP_HEADER, msg, http_custom_header::name, SHOW_BOOL, and SHOW_STR.
Referenced by show_connection_entry().
|
static |
Definition at line 132 of file options_show.c.
References D_SHOW_PARMS, push_entry::enable, gc, gc_free(), gc_new(), push_list::head, options::ifconfig_ipv6_pool_base, options::ifconfig_pool_end, options::ifconfig_pool_netmask, options::ifconfig_pool_start, learn_address_script(), msg, push_entry::next, push_entry::option, print_in6_addr(), print_in_addr_t(), print_vlan_accept(), options::push_ifconfig_ipv6_local, options::push_ifconfig_ipv6_netbits, options::push_ifconfig_ipv6_remote, options::push_ifconfig_local, options::push_ifconfig_remote_netmask, options::push_list, options::server_bridge_ip, options::server_bridge_netmask, options::server_bridge_pool_end, options::server_bridge_pool_start, options::server_netmask, options::server_network, options::server_network_ipv6, SHOW_BOOL, SHOW_INT, SHOW_STR, SHOW_STR_INLINE, SHOW_UINT, and options::vlan_accept.
Referenced by show_settings().
|
static |
Definition at line 329 of file options_show.c.
References D_SHOW_PARMS, pull_filter_list::head, msg, pull_filter::next, pull_filter::pattern, pull_filter_type_name(), and pull_filter::type.
Referenced by show_settings().
| void show_settings | ( | const struct options * | o | ) |
Definition at line 345 of file options_show.c.
References options::client_nat, D_SHOW_PARMS, daemon(), options::dns_options, format_hex_ex(), gc, gc_free(), gc_new(), verify_hash_list::hash, options::key_direction, keydirection2ascii(), machine_readable_output, options::management_flags, MAX_PARMS, MD_SHA1, MF_EXTERNAL_CERT, MF_EXTERNAL_KEY, msg, verify_hash_list::next, pkcs11_id_management, options::plugin_list, plugin_option_list_print(), print_client_nat_list(), print_route_options(), options::pull_filter_list, push_peer_info(), options::routes, SHA256_DIGEST_LENGTH, SHA_DIGEST_LENGTH, SHOW_BOOL, show_connection_entries(), show_dns_options(), SHOW_INT, SHOW_INT64, show_p2mp_parms(), SHOW_PARM, show_pull_filter_list(), SHOW_STR, SHOW_STR_INLINE, show_tuntap_options(), suppress_timestamps, test_crypto(), tls_verify(), options::tuntap_options, options::verify_hash, and options::verify_hash_algo.
Referenced by openvpn_main().
|
static |
Definition at line 91 of file options_show.c.
References dhcp_renew(), tuntap_options::dns, tuntap_options::dns_len, tuntap_options::domain_search_list, tuntap_options::domain_search_list_len, tuntap_options::nbdd, tuntap_options::nbdd_len, tuntap_options::ntp, tuntap_options::ntp_len, SHOW_BOOL, show_dhcp_option_addrs(), show_dhcp_option_list(), SHOW_INT, SHOW_STR, SHOW_UNSIGNED, tuntap_options::wins, and tuntap_options::wins_len.
Referenced by show_settings().