diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-02-19 17:32:56 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-10-21 11:33:41 +0200 |
commit | adfe37fc84f47f0dfc11b4ad728f314ef76e4ee7 (patch) | |
tree | d39f5ae06aece8398ea53aeb9d9f97156e8a29de /occ.h | |
parent | [PATCH] Change verify-cn so cn is no longer hardcoded in openvpn's config file (diff) | |
download | openvpn-adfe37fc84f47f0dfc11b4ad728f314ef76e4ee7.tar.xz |
verb 5 logging wrongly reports received bytes
With --verb 5, openvpn logs a single letter (rwRW) for each package
received or sent. I recently ran into a problem with the tun device on
Linux where the read from that device returned 0. Unfortunately this was
also logged as "r", which made me assume that openvpn had received
something, while it actually hadn't.
(See https://dev.openwrt.org/ticket/6650 for the bug that made me find out
about this problem with openvpn.)
I'm attaching a patch which prevents openvpn from logging "r" or "R" when
it didn't actually read anything. This is against openvpn 2.1-rc20, but
probably still applies to the most recent version.
This patch was received anonymously via the sf.net bug tracker:
<http://sourceforge.net/tracker/?func=detail&atid=454719&aid=2951003&group_id=48978>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'occ.h')
0 files changed, 0 insertions, 0 deletions