From: Gerrit Renker Date: Fri, 30 Nov 2007 09:23:51 +0000 (+0100) Subject: 02_Reverse-lookup-support.diff X-Git-Tag: v0.3.0~73^2~7 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=7f9340341574044e16e1ffc30f856f13d1e3ba6c;hp=7f9340341574044e16e1ffc30f856f13d1e3ba6c 02_Reverse-lookup-support.diff In some parts of the code a reverse-lookup (e.g. "connection from xxx") is used. An address-family independent reverse-lookup function is provided by this patch, exploiting that a socket is described by {src addr, src port, dst addr, dst port}: * host_and_port(): prints host and port number of given socket, * local_name(): pretty-prints src-addr/src-port, * remote_name(): pretty-prints dst-addr/dst-port; Signed-off-by: Gerrit Renker ---