From 25369460a1b2f204d03a6bc4821251d7ef2d7adf Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Wed, 2 Oct 2013 16:27:12 -0700 Subject: log client ip with pid, etc --- libxrdp/xrdp_rdp.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libxrdp/xrdp_rdp.c') diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index 1a7e717f..da43ed23 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -587,6 +587,14 @@ xrdp_rdp_incoming(struct xrdp_rdp *self) MCS_USERCHANNEL_BASE; xrdp_rdp_parse_client_mcs_data(self); DEBUG(("out xrdp_rdp_incoming mcs channel %d", self->mcs_channel)); + + g_strncpy(self->client_info.client_addr, + self->sec_layer->mcs_layer->iso_layer->tcp_layer->trans->addr, + sizeof(self->client_info.client_addr) - 1); + g_strncpy(self->client_info.client_port, + self->sec_layer->mcs_layer->iso_layer->tcp_layer->trans->port, + sizeof(self->client_info.client_port) - 1); + return 0; } -- cgit v1.2.1