Get IP from ttyname(3)

Sharad Chandra sharadc at
Tue Jan 2 12:31:20 UTC 2007

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 

 ... <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..?


More information about the freebsd-hackers mailing list