<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openvpn.git, branch beta/2.3</title>
<subtitle>Copy of the official OpenVPN git repo</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/'/>
<entry>
<title>Preparing for v2.3.0</title>
<updated>2013-01-07T10:53:57+00:00</updated>
<author>
<name>David Sommerseth</name>
<email>davids@redhat.com</email>
</author>
<published>2013-01-02T19:13:37+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=d690047134a89b262f53a63afed76feb13fc85d0'/>
<id>d690047134a89b262f53a63afed76feb13fc85d0</id>
<content type='text'>
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix client crash on double PUSH_REPLY.</title>
<updated>2013-01-02T12:20:50+00:00</updated>
<author>
<name>Gert Doering</name>
<email>gert@greenie.muc.de</email>
</author>
<published>2012-12-25T12:41:50+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=2e3b853dd1070435d60a1f11ff4364631c83d6a9'/>
<id>2e3b853dd1070435d60a1f11ff4364631c83d6a9</id>
<content type='text'>
Introduce an extra bool variable c2.pulled_options_md5_init_done to
keep track of md5_init state of pulled_options_state - avoid accessing
uninitialized state when a second PUSH_REPLY comes in (which only happens
under very particular circumstances).

Bug tracked down by Arne Schwabe &lt;arne@rfc2549.rrg&gt;.

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: 20121225124856.GT22465@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7216
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 1978db4b9657f0db134f1deaeb1e8400bf6a033e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce an extra bool variable c2.pulled_options_md5_init_done to
keep track of md5_init state of pulled_options_state - avoid accessing
uninitialized state when a second PUSH_REPLY comes in (which only happens
under very particular circumstances).

Bug tracked down by Arne Schwabe &lt;arne@rfc2549.rrg&gt;.

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: 20121225124856.GT22465@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7216
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 1978db4b9657f0db134f1deaeb1e8400bf6a033e)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix parameter type for IP_TOS setsockopt on non-Linux systems.</title>
<updated>2012-12-20T08:56:00+00:00</updated>
<author>
<name>Gert Doering</name>
<email>gert@greenie.muc.de</email>
</author>
<published>2012-12-19T21:12:41+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=a28048a20f46f718c3df3af95e230ab72234f915'/>
<id>a28048a20f46f718c3df3af95e230ab72234f915</id>
<content type='text'>
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 &lt;gert@greenie.muc.de&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 20121219212619.GN22465@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7207
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit d39f31d96378aa5eeade74670ffd9e08bf4c7234)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;gert@greenie.muc.de&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 20121219212619.GN22465@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7207
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit d39f31d96378aa5eeade74670ffd9e08bf4c7234)
</pre>
</div>
</content>
</entry>
<entry>
<title>Preparing for v2.3_rc2</title>
<updated>2012-12-17T09:41:32+00:00</updated>
<author>
<name>David Sommerseth</name>
<email>davids@redhat.com</email>
</author>
<published>2012-12-17T09:41:32+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=a2f40aac86d0d005f7ae2da08ce6c22ac30a1bd5'/>
<id>a2f40aac86d0d005f7ae2da08ce6c22ac30a1bd5</id>
<content type='text'>
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix option inconsistency warnings about "proto" and "tun-ipv6"</title>
<updated>2012-12-17T09:36:07+00:00</updated>
<author>
<name>Gert Doering</name>
<email>gert@greenie.muc.de</email>
</author>
<published>2012-12-16T21:15:20+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=f21410729e68b553f391dc036c0372fd3690714e'/>
<id>f21410729e68b553f391dc036c0372fd3690714e</id>
<content type='text'>
"tun-ipv6" is only sent in option string if running in point-to-point
mode (= not --server and not --client or --pull), because in those
scenarios it's usually pushed by the server, and the client does not
yet have it when comparing options -&gt; needless warning.

Completely ignore "proto" values when comparing option strings - this
is in preparation for removing proto from the option string in a future
release, and to avoid warnings when 2.3 talks to this future release.

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 1355692520-24362-1-git-send-email-gert@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7194
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 3b860cf27b9374f6ebe67ff21011661f8ec391c6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"tun-ipv6" is only sent in option string if running in point-to-point
mode (= not --server and not --client or --pull), because in those
scenarios it's usually pushed by the server, and the client does not
yet have it when comparing options -&gt; needless warning.

Completely ignore "proto" values when comparing option strings - this
is in preparation for removing proto from the option string in a future
release, and to avoid warnings when 2.3 talks to this future release.

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: David Sommerseth &lt;davids@redhat.com&gt;
Message-Id: 1355692520-24362-1-git-send-email-gert@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7194
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 3b860cf27b9374f6ebe67ff21011661f8ec391c6)
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement --mssfix handling for IPv6 packets.</title>
<updated>2012-12-13T15:46:01+00:00</updated>
<author>
<name>Gert Doering</name>
<email>gert@greenie.muc.de</email>
</author>
<published>2012-12-02T21:11:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=729c8464021ff7c41a7fbb03501465eca55909a3'/>
<id>729c8464021ff7c41a7fbb03501465eca55909a3</id>
<content type='text'>
Rename process_ipv4_header() to process_ip_header() and PIPV4_MSSFIX
flag to PIP_MSSFIX, to make visible that it's no longer IPv4-only.

Inside process_ip_header(), call out to mss_fixup_ipv6() if --mssfix
is active and IPv6 packet seen.

Rename mss_fixup() to mss_fixup_ipv4(), implement mss_fixup_ipv6().

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: 1354482672-16136-2-git-send-email-gert@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7173
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit f0e8997a874a89b3fe1f82109c443232e8967b01)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename process_ipv4_header() to process_ip_header() and PIPV4_MSSFIX
flag to PIP_MSSFIX, to make visible that it's no longer IPv4-only.

Inside process_ip_header(), call out to mss_fixup_ipv6() if --mssfix
is active and IPv6 packet seen.

Rename mss_fixup() to mss_fixup_ipv4(), implement mss_fixup_ipv6().

Signed-off-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Acked-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Message-Id: 1354482672-16136-2-git-send-email-gert@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/7173
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit f0e8997a874a89b3fe1f82109c443232e8967b01)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the proto is used inconsistently warning</title>
<updated>2012-12-13T15:46:01+00:00</updated>
<author>
<name>Arne Schwabe</name>
<email>arne@rfc2549.org</email>
</author>
<published>2012-12-04T19:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=34bc52d611deec62e7fe56622771b58921d52176'/>
<id>34bc52d611deec62e7fe56622771b58921d52176</id>
<content type='text'>
Fix the "WARNING: 'proto' is used inconsistently, local='proto UDP',
remote='proto UDPv6'." message.

Note that the on wire strings are now always TCPv4 and UDPv4 to be
compatible to pre2.3

Signed-off-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1354650174-25601-1-git-send-email-arne@rfc2549.org
URL: http://article.gmane.org/gmane.network.openvpn.devel/7175
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 38727e09df35245ba0cfe335e23e6b43c817ce58)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the "WARNING: 'proto' is used inconsistently, local='proto UDP',
remote='proto UDPv6'." message.

Note that the on wire strings are now always TCPv4 and UDPv4 to be
compatible to pre2.3

Signed-off-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1354650174-25601-1-git-send-email-arne@rfc2549.org
URL: http://article.gmane.org/gmane.network.openvpn.devel/7175
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 38727e09df35245ba0cfe335e23e6b43c817ce58)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove dnsflags_to_socktype, it is not used anywhere</title>
<updated>2012-12-13T15:46:01+00:00</updated>
<author>
<name>Arne Schwabe</name>
<email>arne@rfc2549.org</email>
</author>
<published>2012-11-30T19:17:47+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=e99982218b5549894a94cc3c5f6209219d911ba1'/>
<id>e99982218b5549894a94cc3c5f6209219d911ba1</id>
<content type='text'>
Signed-off-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1354303076-13606-1-git-send-email-arne@rfc2549.org
URL: http://article.gmane.org/gmane.network.openvpn.devel/7160
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 740137f6bb7b3565054c3a8e894ceca93f2ff0e4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Arne Schwabe &lt;arne@rfc2549.org&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1354303076-13606-1-git-send-email-arne@rfc2549.org
URL: http://article.gmane.org/gmane.network.openvpn.devel/7160
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
(cherry picked from commit 740137f6bb7b3565054c3a8e894ceca93f2ff0e4)
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid recursion in virtual_output_callback_func()</title>
<updated>2012-11-29T20:47:57+00:00</updated>
<author>
<name>David Sommerseth</name>
<email>davids@redhat.com</email>
</author>
<published>2012-11-16T11:02:06+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=5541ea21691b5b39adc4bd3e1ff1af86a050c71d'/>
<id>5541ea21691b5b39adc4bd3e1ff1af86a050c71d</id>
<content type='text'>
This solves a SEGV situation when using the management API while OpenVPN
is closing down.

The situation happens when the management socket has closed and OpenVPN
tries to write an error about this to the management socket.  What happens
is that

 virtual_output_callback_func() is called, which then calls
 -&gt; man_output_list_push_finalize()
    -&gt; man_output_standalone()
       -&gt; man_write()  &lt;-- this does the socket write
          -&gt; man_io_error()
             -&gt; x_msg()
                -&gt; virtual_output_print()
                   -&gt; virtual_output_callback_func() (recursion start)

virtual_output_callback_func() do have a mechanism to avoid recursion,
but that did not keep the recurse counter when
man_output_list_push_finalize()
is called.

This patch just reorganise the recursion block to also keep the counter
while
calling the other functions from virtual_output_callback_func()

Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1353063726-25113-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/7130
(cherry picked from commit b2b66179f6dcc37de9582d5c3044f0357dda3df3)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This solves a SEGV situation when using the management API while OpenVPN
is closing down.

The situation happens when the management socket has closed and OpenVPN
tries to write an error about this to the management socket.  What happens
is that

 virtual_output_callback_func() is called, which then calls
 -&gt; man_output_list_push_finalize()
    -&gt; man_output_standalone()
       -&gt; man_write()  &lt;-- this does the socket write
          -&gt; man_io_error()
             -&gt; x_msg()
                -&gt; virtual_output_print()
                   -&gt; virtual_output_callback_func() (recursion start)

virtual_output_callback_func() do have a mechanism to avoid recursion,
but that did not keep the recurse counter when
man_output_list_push_finalize()
is called.

This patch just reorganise the recursion block to also keep the counter
while
calling the other functions from virtual_output_callback_func()

Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1353063726-25113-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/7130
(cherry picked from commit b2b66179f6dcc37de9582d5c3044f0357dda3df3)
</pre>
</div>
</content>
</entry>
<entry>
<title>The get_default_gateway() function uses warn() instead of msg()</title>
<updated>2012-11-29T20:47:57+00:00</updated>
<author>
<name>David Sommerseth</name>
<email>davids@redhat.com</email>
</author>
<published>2012-11-29T13:16:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dsommers/public_git/openvpn.git/commit/?id=28d9e57638d66fde792a53a3eb6391ddb8bb426f'/>
<id>28d9e57638d66fde792a53a3eb6391ddb8bb426f</id>
<content type='text'>
A report on #openvpn pointed out that in his setup three warnings
appeard on the console when starting up.

    $ sudo /usr/local/etc/rc.d/openvpn restart
    Stopping openvpn.
    Waiting for PIDS: 33031.
    Starting openvpn.
    openvpn: writing to routing socket: No such process
    openvpn: writing to routing socket: No such process
    openvpn: writing to routing socket: No such process
    $

This setup is on FreeBSD using jails with strict access to the
routing table.

After looking at the code path, this error was found in the BSD
sections for get_default_gateway().  But it was using the warn()
call instead of msg(M_WARN|M_ERRNO, ...) which causes these
warnings to go to stderr instead of the log file.

The warning string is also slightly modified to better explain
what fails.

Reported-by: Thomas Steen Rasmussen &lt;thomas@gibfest.dk&gt;
Tested-by: Thomas Steen Rasmussen &lt;thomas@gibfest.dk&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1354194972-5388-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/7149
(cherry picked from commit b3f19cc4bec6978a128f5af3ab22d8cfa954b064)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A report on #openvpn pointed out that in his setup three warnings
appeard on the console when starting up.

    $ sudo /usr/local/etc/rc.d/openvpn restart
    Stopping openvpn.
    Waiting for PIDS: 33031.
    Starting openvpn.
    openvpn: writing to routing socket: No such process
    openvpn: writing to routing socket: No such process
    openvpn: writing to routing socket: No such process
    $

This setup is on FreeBSD using jails with strict access to the
routing table.

After looking at the code path, this error was found in the BSD
sections for get_default_gateway().  But it was using the warn()
call instead of msg(M_WARN|M_ERRNO, ...) which causes these
warnings to go to stderr instead of the log file.

The warning string is also slightly modified to better explain
what fails.

Reported-by: Thomas Steen Rasmussen &lt;thomas@gibfest.dk&gt;
Tested-by: Thomas Steen Rasmussen &lt;thomas@gibfest.dk&gt;
Signed-off-by: David Sommerseth &lt;davids@redhat.com&gt;
Acked-by: Gert Doering &lt;gert@greenie.muc.de&gt;
Message-Id: 1354194972-5388-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/7149
(cherry picked from commit b3f19cc4bec6978a128f5af3ab22d8cfa954b064)
</pre>
</div>
</content>
</entry>
</feed>
