The "Ip4Broadcast 255.255.255.255" option of olsrd.conf doesn't work when running OLSR on OpenBSD, so I made changes in Makefile.obsd as were that for freeBSD make file to enable the "olsr_sendto function in file \src\bsd\net.c" use the libnet API instead of standard socket sento function. This way OLSRD started sending broadcast packets on 255.255.255.255. Minimal testing done so far on single interface.
PREFIX ?= /usr/local
CPPFLAGS += -DSPOOF -I$(PREFIX)/include
LIBS += -L$(PREFIX)/lib -lnet
dyn_gw "dynamic gateway" plugin requires pthread library so I modified Makefile.obsd with following line to compile and run it.
OS_LIB_PTHREAD = -lpthread
OS_CFLAG_PTHREAD = -pthread
OS_LIB_DYNLOAD =
Modified Makefile.obsd is attached
Regards
Jaspreet Bajwa
jps_bajwa@hotmail.com
Makefile.obsd
Logged In: YES
user_id=2074874
Originator: YES
olsr giving KERN error after these changes unable to add routes.
Logged In: YES
user_id=2074874
Originator: YES
found problem with getifaddrs function in /bsd/kernel_routes.c, copied the file from openbsd source tree /lib/libc/net/getifaddrs.c to /src/bsd/ in olsr source tree and after recompilation it worked okay.