simon-git: putty (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Mon May 18 14:04:50 BST 2015
TL;DR:
c8f8397 Log identifying information for the other end of connections.
Repository: git://git.tartarus.org/simon/putty.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2015-05-18 14:04:50
commit c8f83979a368d10e8def1796cdadd7f8f3bebf74
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=c8f83979a368d10e8def1796cdadd7f8f3bebf74;hp=63d7365ae6d1be6facaabad6ecc80cf6650f5d6d
Author: Simon Tatham <anakin at pobox.com>
Date: Mon May 18 13:57:45 2015 +0100
Log identifying information for the other end of connections.
When anyone connects to a PuTTY tool's listening socket - whether it's
a user of a local->remote port forwarding, a connection-sharing
downstream or a client of Pageant - we'd like to log as much
information as we can find out about where the connection came from.
To that end, I've implemented a function sk_peer_info() in the socket
abstraction, which returns a freeform text string as best it can (or
NULL, if it can't get anything at all) describing the thing at the
other end of the connection. For TCP connections, this is done using
getpeername() to get an IP address and port in the obvious way; for
Unix-domain sockets, we attempt SO_PEERCRED (conditionalised on some
moderately hairy autoconfery) to get the pid and owner of the peer. I
haven't implemented anything for Windows named pipes, but I will if I
hear of anything useful.
Recipe | 4 ++--
configure.ac | 22 ++++++++++++++++++++++
errsock.c | 8 +++++++-
network.h | 8 ++++++++
pageant.c | 10 ++++++++--
portfwd.c | 19 +++++++++++++++++--
proxy.c | 3 ++-
ssh.c | 9 +++++++--
ssh.h | 3 ++-
sshshare.c | 5 ++++-
unix/unix.h | 5 +++++
unix/uxnet.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++-
unix/uxpeer.c | 32 ++++++++++++++++++++++++++++++++
unix/uxproxy.c | 3 ++-
windows/winhsock.c | 8 +++++++-
windows/winnet.c | 48 +++++++++++++++++++++++++++++++++++++++++++++---
windows/winnps.c | 8 +++++++-
17 files changed, 227 insertions(+), 19 deletions(-)
More information about the tartarus-commits
mailing list