Go to the documentation of this file.
26 #ifndef OPENVPN_BLOCK_DNS_H
27 #define OPENVPN_BLOCK_DNS_H
30 #define BLOCK_DNS_IFACE_METRIC 3
DWORD set_interface_metric(const NET_IFINDEX index, const ADDRESS_FAMILY family, const ULONG metric)
Sets interface metric value for specified interface index.
int get_interface_metric(const NET_IFINDEX index, const ADDRESS_FAMILY family, int *is_auto)
Return interface metric value for the specified interface index.
DWORD add_block_dns_filters(HANDLE *engine, int iface_index, const WCHAR *exe_path, block_dns_msg_handler_t msg_handler_callback)
DWORD delete_block_dns_filters(HANDLE engine)
void(* block_dns_msg_handler_t)(DWORD err, const char *msg)