| OpenVPN
    | 

Go to the source code of this file.
| Macros | |
| #define | BLOCK_DNS_IFACE_METRIC 3 | 
| Typedefs | |
| typedef void(* | block_dns_msg_handler_t) (DWORD err, const char *msg) | 
| Functions | |
| DWORD | delete_block_dns_filters (HANDLE engine) | 
| DWORD | add_block_dns_filters (HANDLE *engine, int iface_index, const WCHAR *exe_path, block_dns_msg_handler_t msg_handler_callback) | 
| int | get_interface_metric (const NET_IFINDEX index, const ADDRESS_FAMILY family, int *is_auto) | 
| Return interface metric value for the specified interface index.  More... | |
| DWORD | set_interface_metric (const NET_IFINDEX index, const ADDRESS_FAMILY family, const ULONG metric) | 
| Sets interface metric value for specified interface index.  More... | |
| #define BLOCK_DNS_IFACE_METRIC 3 | 
Definition at line 30 of file block_dns.h.
| typedef void(* block_dns_msg_handler_t) (DWORD err, const char *msg) | 
Definition at line 32 of file block_dns.h.
| DWORD add_block_dns_filters | ( | HANDLE * | engine, | 
| int | iface_index, | ||
| const WCHAR * | exe_path, | ||
| block_dns_msg_handler_t | msg_handler_callback | ||
| ) | 
Definition at line 174 of file block_dns.c.
References add_sublayer(), CHECK_ERROR, default_msg_handler(), FIREWALL_NAME, FWPM_SESSION_FLAG_DYNAMIC, and UINT64.
Referenced by AddBlockDNS(), and win_wfp_block_dns().
| DWORD delete_block_dns_filters | ( | HANDLE | engine | ) | 
Definition at line 325 of file block_dns.c.
Referenced by AddBlockDNS(), DeleteBlockDNS(), Undo(), and win_wfp_uninit().
| int get_interface_metric | ( | const NET_IFINDEX | index, | 
| const ADDRESS_FAMILY | family, | ||
| int * | is_auto | ||
| ) | 
Return interface metric value for the specified interface index.
| index | The index of TAP adapter. | 
| family | Address family (AF_INET for IPv4 and AF_INET6 for IPv6). | 
| is_auto | On return set to true if automatic metric is in use. Unused if NULL. | 
Definition at line 350 of file block_dns.c.
Referenced by adapter_index_of_ip(), AddBlockDNS(), and win_wfp_block_dns().
| DWORD set_interface_metric | ( | const NET_IFINDEX | index, | 
| const ADDRESS_FAMILY | family, | ||
| const ULONG | metric | ||
| ) | 
Sets interface metric value for specified interface index.
| index | The index of TAP adapter | 
| family | Address family (AF_INET for IPv4 and AF_INET6 for IPv6) | 
| metric | Metric value. 0 for automatic metric | 
Definition at line 389 of file block_dns.c.
Referenced by AddBlockDNS(), DeleteBlockDNS(), Undo(), win_wfp_block_dns(), and win_wfp_uninit().
 1.8.17
 1.8.17