diff options
author | Selva Nair | 2018-10-02 16:01:13 -0400 |
---|---|---|
committer | Gert Doering | 2018-10-05 15:03:21 +0200 |
commit | b4fc8bbd6b1d0211dd6982c4accedfbe4ae7e3ed (patch) | |
tree | 6d0aa655ab8545d42e04a0c2040d30c3ce6c6adc /include | |
parent | a29b60c9577a7ea1302cd761645234a174a7e3cb (diff) | |
download | openvpn-b4fc8bbd6b1d0211dd6982c4accedfbe4ae7e3ed.zip openvpn-b4fc8bbd6b1d0211dd6982c4accedfbe4ae7e3ed.tar.gz |
Enable dhcp on tap adapter using interactive service
Currently, if dhcp on the TAP interface is disabled, OpenVPN
on Windows tries to enable it using netsh but that succeeds only when
run with admin privileges.
When interactive service is available, delegate this task to the
service.
Trac: #1111
Tested on Windows 7
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1538510474-27602-2-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17517.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvpn-msg.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/openvpn-msg.h b/include/openvpn-msg.h index 82ecfe8..66177a2 100644 --- a/include/openvpn-msg.h +++ b/include/openvpn-msg.h @@ -37,7 +37,8 @@ typedef enum { msg_flush_neighbors, msg_add_block_dns, msg_del_block_dns, - msg_register_dns + msg_register_dns, + msg_enable_dhcp, } message_type_t; typedef struct { @@ -111,4 +112,9 @@ typedef struct { interface_t iface; } block_dns_message_t; +typedef struct { + message_header_t header; + interface_t iface; +} enable_dhcp_message_t; + #endif /* ifndef OPENVPN_MSG_H_ */ |