Date: Tue, 2 Jan 2007 17:40:31 +0530 From: Sharad Chandra <sharadc@niksun.com> To: freebsd-hackers@freebsd.org Subject: Get IP from ttyname(3) Message-ID: <200701021740.32110.sharadc@niksun.com>
next in thread | raw e-mail | index | archive | help
Hi all, I was reading man page of ttyname(3). I thought if i have ttyname then using that can i have IP address of connected host?. like in sshd logs on log file like. ... <host name> sshd[<I guess PID>]: Accepted keyboard-interactive/pam for <user name> from <IP> port <port no> ssh2 This IP here is connected hosts ip.. is there any api..? Thanks Sharad
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701021740.32110.sharadc>