diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-10-02 16:27:12 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-10-02 16:27:12 -0700 |
commit | 25369460a1b2f204d03a6bc4821251d7ef2d7adf (patch) | |
tree | d0c1ad0dac826abfa34c15e4b9b06dc76f2352c6 /libxrdp | |
parent | 7176f1464710fd809af92ae3c2fcf9412eda9ace (diff) | |
download | xrdp-proprietary-25369460a1b2f204d03a6bc4821251d7ef2d7adf.tar.gz xrdp-proprietary-25369460a1b2f204d03a6bc4821251d7ef2d7adf.zip |
log client ip with pid, etc
Diffstat (limited to 'libxrdp')
-rw-r--r-- | libxrdp/xrdp_rdp.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |