netstat -I <interface>              e.g.  
netstat -I le1
Name  Mtu  Net/Dest      Address        Ipkts  Ierrs Opkts  Oerrs Collis Queue 
le1   1500 xxx.yyy.0.0   myname         21551702 1     21120642 9     741324 0
and what I want is the Name -> Address mapping  (le1 -> myname in the above case)
but I'd prefer not to have to run netstat from within my program. I've trussed
the above command and it seems that at the end it gets the information from a
door_info which, according to the man page, is the Solaris equivalent of "You'll
go blind if you keep doing that". So, if I can't use door_info to get it (and I
anyway don't have the necessary information) how can I do it ?
half a dozen lines of C code would be nice  . . .   ;-)
Kindest regards,
Niall  O Broin		
UNIX Network Administrator 		 Ground Systems Engineering Department
European Space Operations Centre		nobroin@esoc.esa.de
Darmstadt, Germany				Ph./Fax  +49 6151 90 3619/2179
Kindest regards,
Niall  O Broin		
UNIX Network Administrator 		 Ground Systems Engineering Department
European Space Operations Centre		nobroin@esoc.esa.de
Darmstadt, Germany				Ph./Fax  +49 6151 90 3619/2179