aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/sig.c
diff options
context:
space:
mode:
authorHeiko Hund2015-11-25 13:57:00 +0100
committerGert Doering2015-11-28 14:24:23 +0100
commit2191c4716537b3d3e81b0e746f666dd365b65abd (patch)
tree008cd54ee6180f1bd83c779a167b0a9c2941e692 /src/openvpn/sig.c
parent5a73356ae5d0bf94ec81a33c7dcda6a41651ca6c (diff)
downloadopenvpn-2191c4716537b3d3e81b0e746f666dd365b65abd.zip
openvpn-2191c4716537b3d3e81b0e746f666dd365b65abd.tar.gz
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>
Diffstat (limited to 'src/openvpn/sig.c')
-rw-r--r--src/openvpn/sig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvpn/sig.c b/src/openvpn/sig.c
index a3d29de..f903fc0 100644
--- a/src/openvpn/sig.c
+++ b/src/openvpn/sig.c
@@ -189,8 +189,10 @@ signal_restart_status (const struct signal_info *si)
management_set_state (management,
state,
si->signal_text ? si->signal_text : signal_name (si->signal_received, true),
- (in_addr_t)0,
- (in_addr_t)0);
+ NULL,
+ NULL,
+ NULL,
+ NULL);
}
#endif
}