Re: Getting info about network devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, I am coding in C, so ifconfig won't be that convenient. I am rather looking for some kind of system data file, like /etc/path_to_inst in Solaris.

Does RedHat provide this kind of data file so that programs can make use of them easily ?

-Krish


Pete Nesbitt wrote:
> 
> On June 9, 2004 03:32 am, Krishnendu Sadhukhan wrote:
> > Hi,
> >
> >       I want to programmatically extract the list of network devices currently
> > existing in the system. More specifically, I want to know the following:
> >
> >       i) the list of all interfaces configured by the system at boot time
> >       ii) the list of all available interfaces at a particular moment
> >       iii) the list of all logical interfaces at a particular moment.
> >
> >       I was looking at /proc/net/dev, but it seems it does not give the complete
> > information, especially the information on the logical interfaces.
> >
> >       What is the best place in the system to look for this information ?
> >
> > Thanks,
> > Krish
> 
> What about  "ifconfig" ?
> --
> Pete Nesbitt, rhce


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux