[olsr-dev] freebsd multiple interfaces

Roar Bjørgum Rotvik (spam-protected)
Fri Feb 4 09:22:13 CET 2005

David Cornejo wrote:
> I have a very rough attempt at making olsrd work with multiple
> interfaces in FreeBSD.  Right now I'm using libnet to make up outgoing
> packets, and have hacked the receive side to make it work.  It's
> really ugly, but it seems to be working so far..
> I've run into a structural problem - net_output() (in src/net.c) and
> olsr_input() (in src/parser.c) require a lot of changing, and I'm
> thinking they might better off in the OS specific directories.
> So, couple of questions:
> 1) is anyone radically opposed to the usage of libnet?  I've seen some
> things coming in FreeBSD 6 that would allow less modifications (maybe
> even none), but that doesn't help those of us stuck at FreeBSD 4 or 5.
>  Libnet would be portable across all these.

Personally I don't like to include more external libraries than needed, 
but if this is a special case for BSD I wouldn't care as much as I don't 
use this platform :)

I guess that BSD4/5 is missing functionality to "bind" a socket to a 
spesific interface like Linux can?
If this is the case, I don't understand what libnet does to fix this 
that olsrd cannot do directly?

If this is not the problem you are trying to fix, what problem does 
libnet fix for you?

Roar Bjørgum Rotvik

More information about the Olsr-dev mailing list