diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-06-11 08:45:09 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-06-11 08:45:09 +0000 |
commit | 90efcacba6378a4e29275cd6e9914d73d836a4a4 (patch) | |
tree | da032ba71582994f9e1f2ed7162ba14f152cb7d7 /pf.h | |
parent | Added support for building and linking with (diff) | |
download | openvpn-90efcacba6378a4e29275cd6e9914d73d836a4a4.tar.xz |
Updated version to 2.1_rc7e.
Added client authentication and packet filtering capability
to management interface.
Extended packet filtering capability to work on both --dev tun
and --dev tap tunnels.
Updated valgrind-suppress file.
Made "Linux ip addr del failed" error nonfatal.
Amplified --client-cert-not-required warning.
Added #pragma pack to proto.h.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2991 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'pf.h')
-rw-r--r-- | pf.h | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -30,7 +30,7 @@ #include "list.h" #include "mroute.h" -#define PF_DEBUG 0 +#define PF_MAX_LINE_LEN 256 struct context; @@ -73,30 +73,29 @@ struct pf_set { }; struct pf_context { + bool enabled; + struct pf_set *pfs; +#ifdef PLUGIN_PF char *filename; time_t file_last_mod; unsigned int n_check_reload; struct event_timeout reload; - struct pf_set *pfs; +#endif }; void pf_init_context (struct context *c); void pf_destroy_context (struct pf_context *pfc); +#ifdef PLUGIN_PF void pf_check_reload (struct context *c); +#endif -bool pf_c2c_test (const struct context *src, const struct context *dest); - -bool pf_addr_test (const struct context *src, const struct mroute_addr *dest); - -static inline bool -pf_kill_test (const struct pf_set *pfs) -{ - return pfs->kill; -} +#ifdef MANAGEMENT_PF +bool pf_load_from_buffer_list (struct context *c, const struct buffer_list *config); +#endif -#if PF_DEBUG >= 1 +#ifdef ENABLE_DEBUG void pf_context_print (const struct pf_context *pfc, const char *prefix, const int lev); #endif |