]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix parameter type for IP_TOS setsockopt on non-Linux systems.
authorGert Doering <gert@greenie.muc.de>
Wed, 19 Dec 2012 21:12:41 +0000 (22:12 +0100)
committerDavid Sommerseth <davids@redhat.com>
Thu, 20 Dec 2012 08:56:00 +0000 (09:56 +0100)
commita28048a20f46f718c3df3af95e230ab72234f915
treec763ff64abdf74dbfb631743926182ac9fd70fe7
parenta2f40aac86d0d005f7ae2da08ce6c22ac30a1bd5
Fix parameter type for IP_TOS setsockopt on non-Linux systems.

Linux uses uint8_t, all BSD based stacks and Solaris use "int"  (Windows
documentation says "DWORD" and "do not use, use QoS API instead").

Bug reported and fix provided by Torsten Vielhak and Jeremie Le Hen.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 20121219212619.GN22465@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7207
Signed-off-by: David Sommerseth <davids@redhat.com>
(cherry picked from commit d39f31d96378aa5eeade74670ffd9e08bf4c7234)
src/openvpn/socket.h