how to get name of network adapter card if ip address is given in linux?
-
can anybody suggest how to get name of network adapter card if ip address is given in linux?I have to do it programmatically.
an89 wrote:
can anybody suggest how to get name of network adapter card...
Try
GetAdaptersInfo()
. I doubt it'll work on Linux, however."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
an89 wrote:
can anybody suggest how to get name of network adapter card...
Try
GetAdaptersInfo()
. I doubt it'll work on Linux, however."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
I think in linux ioctl(socketid, SIOCGIFCONF, &ifc); can be used. I think you can also use function pcap_findalldevs in libpcap library(opensource). alternatively you can also see the linux specific implementation of pcap_findalldevs in libpcap.
-
I think in linux ioctl(socketid, SIOCGIFCONF, &ifc); can be used. I think you can also use function pcap_findalldevs in libpcap library(opensource). alternatively you can also see the linux specific implementation of pcap_findalldevs in libpcap.
-
an89 wrote:
can anybody suggest how to get name of network adapter card...
Try
GetAdaptersInfo()
. I doubt it'll work on Linux, however."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
an89 wrote:
...as its win32 api.
That's what I would expect from a VC++ forum.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch