lkml.org 
[lkml]   [2009]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectinterface index
Date
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


\
 
 \ /
  Last update: 2009-07-16 11:35    [W:0.026 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site