|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Andrew Brown (atatat
atatdot.net)Date: Tue Jan 08 2002 - 22:14:03 CST
>> > >> You need to know the incoming hardware the packet arrived on to
>> > >> assign an address to the host, so I hope this is what IP_RECVIF is
>> > >> telling you.
>> >
>> > IP_RECVIF gets you the if_index value for the interface in question.
>> > Mapping that to anything useful is up to the packet recipient.
>>
>> I remember these being discussed at one of the last XNET meetings I
>> attanded. I couldn't then work out how if_index numbers helped you
>> do anything useful :-)
>>
>> The guys from sun seemed to think they were vital though.
>
>What you're supposed to have in addition to the index is a way to use
>it to query for all the other state associated with the interface. Then
>the index can become the canonical way for software to refer to an
>interface, leaving the pretty ascii name for humans to use.
well...if there was a kernel interface that could make use of said
numbers...that'd be cool. as it is, they're not much good to me. i
used it in the kernel once, though. there it was good.
-- |-----< "CODE WARRIOR" >-----| codewarriordaemon.org * "ah! i see you have the internet twofsonet
graffiti.com (Andrew Brown) that goes *ping*!" andrew
crossbar.com * "information is power -- share the wealth."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]