diff options
author | Selva Nair | 2016-02-25 22:24:51 -0500 |
---|---|---|
committer | Gert Doering | 2016-03-06 19:28:25 +0100 |
commit | 2282b1be7968ef44accde705ccc64addab6d77ba (patch) | |
tree | 766b287cb792c98c0512ba2e96a915b902f098da /include | |
parent | 6a33a34dee8f3b574275d8df1635fb550ec054f3 (diff) | |
download | openvpn-2282b1be7968ef44accde705ccc64addab6d77ba.zip openvpn-2282b1be7968ef44accde705ccc64addab6d77ba.tar.gz |
Add support for block-outside-dns through the interactive service
- Add a new message type in openvpn-msg.h
- Pass msg_channel HANDLE to win_wfp_block_dns and win_wfp_uninit
- Add a handler in interactive.c for block_dns request
The service build now depends on block_dns.[ch] in src/openvpn
v2 changes:
- Make CmpEngine non-nested (be nice with non-gcc compilers)
- Print error code in hex
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1456457091-3872-2-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11265
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvpn-msg.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/openvpn-msg.h b/include/openvpn-msg.h index 0dcc72f..7470512 100644 --- a/include/openvpn-msg.h +++ b/include/openvpn-msg.h @@ -35,7 +35,9 @@ typedef enum { msg_del_dns_cfg, msg_add_nbt_cfg, msg_del_nbt_cfg, - msg_flush_neighbors + msg_flush_neighbors, + msg_add_block_dns, + msg_del_block_dns } message_type_t; typedef struct { @@ -105,4 +107,9 @@ typedef struct { int error_number; } ack_message_t; +typedef struct { + message_header_t header; + interface_t iface; +} block_dns_message_t; + #endif |