]> git.ipfire.org Git - thirdparty/openvpn.git/commit
extend management interface command "state"
authorHeiko Hund <heiko.hund@sophos.com>
Wed, 25 Nov 2015 12:57:00 +0000 (13:57 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 28 Nov 2015 13:24:23 +0000 (14:24 +0100)
commit2191c4716537b3d3e81b0e746f666dd365b65abd
tree008cd54ee6180f1bd83c779a167b0a9c2941e692
parent5a73356ae5d0bf94ec81a33c7dcda6a41651ca6c
extend management interface command "state"

Currently the state command shows only the tun/tap IPv4 address. The
IPv4 address of the remote peer is also displayed. In case you connect
via IPv6 it just shows the first 4 bytes of the address in IPv4 notation.

This patch extends the state command, so it handles IPv6 addresses.
In addition it also displays the local address and the both port numbers
of the connection, e.g.

1447250958,CONNECTED,SUCCESS,10.0.0.2,fd00::1,1193,fd00::2,6492,fdff::1002

Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1448456220-2042-1-git-send-email-heiko.hund@sophos.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10603
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/management-notes.txt
src/openvpn/forward.c
src/openvpn/init.c
src/openvpn/manage.c
src/openvpn/manage.h
src/openvpn/route.c
src/openvpn/sig.c
src/openvpn/socket.c
src/openvpn/socket.h
src/openvpn/ssl.c
src/openvpn/tun.c