Skip to contentSkip to conversation

Interface "type".

DISCUSSION Haseeb Budhani 2 participants 2 messages May 30, 2001 – Jun 2, 2001

lore
Share & tools
lore
#0 lore raw

Hello,

I have a fairly quick one: Is there an ioctl flag/call which can be used to find out the "type" of the interface being used ?
I would like to somehow be able to tell in my application whether the interface in question is of type ETHERNET or ATM or FRAME_RELAY etc.

Any/all help will be greatly appreciated.

--
Haseeb Budhani.
Cell : 408.757.8709.
Work : 408.794.1511.

#1 lore raw

Haseeb Budhani <[email protected]> ecrit :
[...]

Quoted 2 lines

I have a fairly quick one: Is there an ioctl flag/call which can be used to find out the "type" of the interface being used ?

See net/core/dev.c:dev_ifsioc + SIOCGIFHWADDR + include/linux/if_arp.h
+ google/search?q=linux+ioctl+device+hardware+type&btnG=Google+Search
+ man ioctl_list

Signature · 1 line
Ueimor