LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2004, 06:59 AM   #1
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
ip address from UTMP


hi there
i am facing this new problem

while trying to retrieve ip address from the utmp file

i am not able to retrieve address from the UTMP file
i am not able to rtetrieve ip address for the local users "root" and others.
alsoi i am facing the same problem for dumb clients also .
but when i look out for the clients logged through telnet
i am getting the correct ip address.......


i am using "inet_ntop" in my program to get the ip addressss from the utmp fiel ip_addr_v6[4]; from the utmp field


i saw in some other system where "who" was displaying ip add. in the LINE field,while mine does not show the ip address for dumb clients

pl. help

Last edited by masand; 04-27-2004 at 07:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't 'userdel' OR How to fix a corrupt utmp? Plauderer Linux - General 3 09-03-2004 11:50 AM
Stale login entries in utmp/wtmp (even after user logs out) dmadhava Linux - General 0 05-19-2004 10:29 AM
ip addresss from utmp masand Linux - General 0 04-27-2004 07:07 AM
utmp, wtmp Xavius Linux - Newbie 3 04-11-2004 08:29 AM
People logged in through kdm don't show up in utmp Tinkster Slackware 4 03-31-2003 01:40 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration