Menu

#2 Ip4Broadcast option and dyn_gw plugin for OLSR on OpenBSD

open
nobody
None
5
2008-04-28
2008-04-28
No

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

Discussion

  • Jaspreet Bajwa

    Jaspreet Bajwa - 2008-04-28

    Makefile.obsd

     
  • Jaspreet Bajwa

    Jaspreet Bajwa - 2008-04-29

    Logged In: YES
    user_id=2074874
    Originator: YES

    olsr giving KERN error after these changes unable to add routes.

     
  • Jaspreet Bajwa

    Jaspreet Bajwa - 2008-04-29

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.