Get IP from ttyname(3)

Thinker thinker at branda.to
Tue Jan 2 14:32:56 UTC 2007


Sharad Chandra wrote:
> 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.
You can read login informations from utmp(8). /var/run/utmp is a array
of utmp(8).
please check man page for more information.


-- 
Thinker Li - thinker at branda.to thinker.li at gmail.com
http://heaven.branda.to/~thinker/GinGin_CGI.py



More information about the freebsd-hackers mailing list