]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Refactor and move the block-outside-dns code to a new file (block_dns.[ch])
authorSelva Nair <selva.nair@gmail.com>
Fri, 26 Feb 2016 03:24:50 +0000 (22:24 -0500)
committerGert Doering <gert@greenie.muc.de>
Sun, 6 Mar 2016 18:27:01 +0000 (19:27 +0100)
commit6a33a34dee8f3b574275d8df1635fb550ec054f3
tree82010966d75e6335d88929d49108c9e77f17d754
parent71d89065ad56dda19996deeeffeddcea632b8349
Refactor and move the block-outside-dns code to a new file (block_dns.[ch])

- Move the core of win_wfp_block_dns() to a new function
- Remove globals and make it independent of the rest of the code

This facilitates implementing support for block-outside-dns through
the interactive service. Should not change any functionality.

v2 changes:
- In comments, correct DeleteBlockDNS() to delete_block_dns_filters

v2a: added <winsock2.h> and <ws2ipdef.h> (Gert Doering)

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1456457091-3872-1-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11264
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/Makefile.am
src/openvpn/block_dns.c [new file with mode: 0644]
src/openvpn/block_dns.h [new file with mode: 0644]
src/openvpn/win32.c