[Olsr-dev] ipv6 patch for txtinfo plugin

Bernd Petrovitsch (spam-protected)
Sat Oct 13 15:18:25 CEST 2007

On Fri, 2007-10-12 at 08:54 +0200, John Hay wrote:
> Here is a patch that make the txtinfo plugin work when olsr is used in
> ipv6 "mode". Its output side seems ok, I only had to tweak the parts

Very good.

> that opened the socket and did the access control.

Hmm, on Fedora-7 I get 
----  snip  ----
/usr/bin/ccache gcc -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wnested-externs -Winline -Wdisabled-optimization -Werror -Os -g  -finline-functions-called-once -fearly-inlining -finline-limit=50 -fPIC -Isrc -I../../src -pthread -DOLSR_PLUGIN -DSUPPORT_OLD_PLUGIN_VERSIONS=1 -Dlinux    -c -o src/olsrd_txtinfo.o src/olsrd_txtinfo.c
src/olsrd_txtinfo.c: In function ‘plugin_ipc_init’:
src/olsrd_txtinfo.c:178: error: ‘struct sockaddr_in’ has no member named ‘sin_len’
src/olsrd_txtinfo.c:184: error: ‘struct sockaddr_in6’ has no member named ‘sin6_len’
src/olsrd_txtinfo.c:190: error: ‘struct sockaddr_storage’ has no member named ‘ss_len’
make[2]: *** [src/olsrd_txtinfo.o] Error 1
----  snip  ----
Apparently there are no *_len fields there (and I didn't find one in the
header files).
Since it doesn't compile on the most recent F-7, I wonder if the *_len
fields are a FreeBSD-only thing or what's the story behind.

BTW no need to send an updated patch. If it's OK, I put it into #ifdef
and what else takes (as it is trivial to fix anyways).

Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

More information about the Olsr-dev mailing list