OpenVPN
options_show.c File Reference
#include "syshead.h"
#include "options_show.h"
#include "crypto.h"
#include "error.h"
#include "options.h"
Include dependency graph for options_show.c:

Go to the source code of this file.

Macros

#define SHOW_PARM(name, value, format)
#define SHOW_STR(var)
#define SHOW_STR_INLINE(var)
#define SHOW_INT(var)
#define SHOW_UINT(var)
#define SHOW_INT64(var)
#define SHOW_UNSIGNED(var)
#define SHOW_BOOL(var)

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)

Macro Definition Documentation

◆ SHOW_BOOL

#define SHOW_BOOL ( var)
Value:
SHOW_PARM(var, (o->var ? "ENABLED" : "DISABLED"), "%s");
#define SHOW_PARM(name, value, format)

Definition at line 66 of file options_show.c.

Referenced by show_connection_entry(), show_http_proxy_options(), show_p2mp_parms(), show_settings(), and show_tuntap_options().

◆ SHOW_INT

#define SHOW_INT ( var)
Value:
SHOW_PARM(var, o->var, "%d")

Definition at line 62 of file options_show.c.

Referenced by show_connection_entry(), show_p2mp_parms(), show_settings(), and show_tuntap_options().

◆ SHOW_INT64

#define SHOW_INT64 ( var)
Value:
SHOW_PARM(var, o->var, "%" PRIi64)

Definition at line 64 of file options_show.c.

Referenced by show_settings().

◆ SHOW_PARM

#define SHOW_PARM ( name,
value,
format )
Value:
msg(D_SHOW_PARMS, " " #name " = " format, (value))
#define D_SHOW_PARMS
Definition errlevel.h:95
#define msg(flags,...)
Definition error.h:152

Definition at line 58 of file options_show.c.

Referenced by show_connection_entry(), and show_settings().

◆ SHOW_STR

#define SHOW_STR ( var)
Value:
SHOW_PARM(var, (o->var ? o->var : "[UNDEF]"), "'%s'")

Definition at line 59 of file options_show.c.

Referenced by show_connection_entry(), show_http_proxy_options(), show_p2mp_parms(), show_settings(), and show_tuntap_options().

◆ SHOW_STR_INLINE

#define SHOW_STR_INLINE ( var)
Value:
SHOW_PARM(var, o->var##_inline ? "[INLINE]" : (o->var ? o->var : "[UNDEF]"), "'%s'")

Definition at line 60 of file options_show.c.

Referenced by show_connection_entry(), show_p2mp_parms(), and show_settings().

◆ SHOW_UINT

#define SHOW_UINT ( var)
Value:
SHOW_PARM(var, o->var, "%u")

Definition at line 63 of file options_show.c.

Referenced by show_p2mp_parms(), and show_settings().

◆ SHOW_UNSIGNED

#define SHOW_UNSIGNED ( var)
Value:
SHOW_PARM(var, o->var, "0x%08x")

Definition at line 65 of file options_show.c.

Referenced by show_tuntap_options().

Function Documentation

◆ print_vlan_accept()

const char * print_vlan_accept ( enum vlan_acceptable_frames mode)
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().

◆ pull_filter_type_name()

const char * pull_filter_type_name ( int type)
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().

◆ show_connection_entries()

void show_connection_entries ( const struct options * o)
static

◆ show_connection_entry()

◆ show_dhcp_option_addrs()

void show_dhcp_option_addrs ( const char * name,
const in_addr_t * array,
unsigned int len )
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().

◆ show_dhcp_option_list()

void show_dhcp_option_list ( const char * name,
const char *const * array,
unsigned int len )
static

Definition at line 71 of file options_show.c.

References D_SHOW_PARMS, and msg.

Referenced by show_tuntap_options().

◆ show_http_proxy_options()

void show_http_proxy_options ( const struct http_proxy_options * o)
static

◆ show_p2mp_parms()

◆ show_pull_filter_list()

void show_pull_filter_list ( const struct pull_filter_list * l)
static

◆ show_settings()

◆ show_tuntap_options()