[olsr-dev] Bind to device an IPC socket
Wed Feb 21 17:05:28 CET 2007
What you want can be found in the olsr_cnf struct. Have a look
Sergio Cabrero Barros wrote:
> I want to bind my socket to the same network Interface where the main olsrd
> socket is already binded. So, what i am looking for is a variable, accessible
> from my plugin, containing that interface name (ie: tap23)
> On Wednesday 21 February 2007 11:51, Bernd Petrovitsch wrote:
>> On Wed, 2007-02-21 at 11:16 +0100, Sergio Cabrero Barros wrote:
>>> Does anyone know how to Bind (SO_BINDTODEVICE) the IPC socket of a plugin
>>> (ie: Dot draw) to the interface that is running olsrd? Just like the
>>> olsrd socket do.
>> If you want to bind it to an IP-address use the bind system call.
>> The setsockopt() call with the above option can be found in the source
>> somewhere - just grep for it.
>> Or did I misunderstand the question and what you are trying to do?
> olsr-dev mailing list
More information about the Olsr-dev