OpenVPN
Macros | Functions
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)   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)
 

Macro Definition Documentation

◆ SHOW_BOOL

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

Definition at line 66 of file options_show.c.

◆ SHOW_INT

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

Definition at line 62 of file options_show.c.

◆ SHOW_INT64

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

Definition at line 64 of file options_show.c.

◆ SHOW_PARM

#define SHOW_PARM (   name,
  value,
  format 
)    msg(D_SHOW_PARMS, " " #name " = " format, (value))

Definition at line 58 of file options_show.c.

◆ SHOW_STR

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

Definition at line 59 of file options_show.c.

◆ SHOW_STR_INLINE

#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.

◆ SHOW_UINT

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

Definition at line 63 of file options_show.c.

◆ SHOW_UNSIGNED

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

Definition at line 65 of file options_show.c.

Function Documentation

◆ print_vlan_accept()

static 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()

static 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()

static void show_connection_entries ( const struct options o)
static

◆ show_connection_entry()

static void show_connection_entry ( const struct connection_entry o)
static

◆ show_dhcp_option_addrs()

static 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()

static 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()

static void show_http_proxy_options ( const struct http_proxy_options o)
static

◆ show_p2mp_parms()

static void show_p2mp_parms ( const struct options o)
static

◆ show_pull_filter_list()

static void show_pull_filter_list ( const struct pull_filter_list l)
static

◆ show_settings()

void show_settings ( const struct options o)

◆ show_tuntap_options()

static void show_tuntap_options ( const struct tuntap_options o)
static