Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Jan 2007 22:20:19 +0800
From:      Thinker <thinker@branda.to>
To:        Sharad Chandra <sharadc@niksun.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Get IP from ttyname(3)
Message-ID:  <459A6A23.1040800@branda.to>
In-Reply-To: <200701021740.32110.sharadc@niksun.com>
References:  <200701021740.32110.sharadc@niksun.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@branda.to thinker.li@gmail.com
http://heaven.branda.to/~thinker/GinGin_CGI.py




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?459A6A23.1040800>