Skip to contentSkip to conversation

interface index

DISCUSSION Patrick Rittiner 1 participant 1 message Jul 16, 2009

lore
Share & tools
lore
#0 lore raw

hello,

can someone tell me how I can get the interface index of a socket connection in kernel space? I mean ow can I use this call in kernel space:
ioctl(sock, SIOCGIFFLAGS, &ifInfo)
I need it to bind the socket to a ethernet interface.
thanks a lot