olsrd.git
6 years agoPUD: clear speed and direction when stationary
Ferry Huberts [Wed, 27 Jun 2012 12:49:18 +0000 (14:49 +0200)]
PUD: clear speed and direction when stationary

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoPUD: fix averaging of direction
Ferry Huberts [Wed, 27 Jun 2012 12:01:49 +0000 (14:01 +0200)]
PUD: fix averaging of direction

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoPUD: fix snprintf length confusion
Ferry Huberts [Wed, 27 Jun 2012 09:42:19 +0000 (11:42 +0200)]
PUD: fix snprintf length confusion

Noticed because the track/direction output was wrong

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agojsoninfo: add data from /sys/class/net/if/wireless to /interfaces
Hans-Christoph Steiner [Tue, 26 Jun 2012 20:35:00 +0000 (16:35 -0400)]
jsoninfo: add data from /sys/class/net/if/wireless to /interfaces

6 years agojsoninfo: added examples using curl and wget to the README
Hans-Christoph Steiner [Tue, 26 Jun 2012 18:18:56 +0000 (14:18 -0400)]
jsoninfo: added examples using curl and wget to the README

6 years agojsoninfo: updated README with description of what this plugin is for
Hans-Christoph Steiner [Tue, 26 Jun 2012 17:51:26 +0000 (13:51 -0400)]
jsoninfo: updated README with description of what this plugin is for

7 years agoPUD: nmealib: do not optimise when compiling with debug
Ferry Huberts [Tue, 26 Jun 2012 09:07:14 +0000 (11:07 +0200)]
PUD: nmealib: do not optimise when compiling with debug

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoolsrd-adhoc-setup: try using "nmcli dev disconnect" instead of "wifi off" since somet...
Hans-Christoph Steiner [Tue, 26 Jun 2012 02:24:23 +0000 (22:24 -0400)]
olsrd-adhoc-setup: try using "nmcli dev disconnect" instead of "wifi off" since sometimes that unloads the wifi driver

7 years agoolsrd-adhoc-setup: accept interface, channel, SSID, and BSSID as args; default to...
Hans-Christoph Steiner [Tue, 26 Jun 2012 02:23:33 +0000 (22:23 -0400)]
olsrd-adhoc-setup: accept interface, channel, SSID, and BSSID as args; default to commotion net

7 years agofix all man page warnings: Debian/Ubuntu don't have T<, T> and URL macros
Hans-Christoph Steiner [Tue, 26 Jun 2012 00:05:33 +0000 (20:05 -0400)]
fix all man page warnings: Debian/Ubuntu don't have T<, T> and URL macros

fixes bug #0000024: olsrd.conf.5 manpage has warnings

7 years agoPUD: fix 2 warnings
Ferry Huberts [Mon, 25 Jun 2012 16:13:32 +0000 (18:13 +0200)]
PUD: fix 2 warnings

src/configuration.c: In function 'getRxNonOlsrInterfaceName':
src/configuration.c:373: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here
src/configuration.c: In function 'getTxNonOlsrInterfaceName':
src/configuration.c:645: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:487: warning: shadowed declaration is here

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: fix setting up network interface.
Ferry Huberts [Mon, 25 Jun 2012 13:28:22 +0000 (15:28 +0200)]
PUD: fix setting up network interface.

Broke in 63e28a0

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: fix getting the update flags in gpsFromOlsr
Ferry Huberts [Mon, 25 Jun 2012 11:24:31 +0000 (13:24 +0200)]
PUD: fix getting the update flags in gpsFromOlsr

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nmealib: remove config.h include
Ferry Huberts [Mon, 25 Jun 2012 13:46:31 +0000 (15:46 +0200)]
PUD: nmealib: remove config.h include

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: the pud plugin requires NDK r8, so document this
Hans-Christoph Steiner [Fri, 22 Jun 2012 23:07:08 +0000 (19:07 -0400)]
android: the pud plugin requires NDK r8, so document this

7 years agoolsrd: fix stack corruption in net_output()
Jo-Philipp Wich [Fri, 22 Jun 2012 01:17:59 +0000 (03:17 +0200)]
olsrd: fix stack corruption in net_output()

The net_output() function indirectly uses the stack variables dst and dst6
outside of the scope they're declared in, this might leads to olsr_sendto()
being called with a corrupted destination sockaddr_in.

This failure condition can be observed in the log, olsrd will continuosly
print "sendto(v4): Invalid Argument" or a similar message. On ARM it has been
reported to result in "Unsupported Address Family".

This bug became apparant on a custon OpenWrt x86_64 uClibc target using the
Linaro GCC 4.7-2012.04 compiler, it has been reported for an unspecified ARM
target as well.

The offending code seems to be unchanged since 2008 and it does not cause
issues on 32bit systems and/or with older (Linaro) GCC versions, but the
compiler used in our tests seems to perform more aggressive optimizations
leading to a stack corruption.

7 years agolinux: add forgotten SHAREDIR make variable
Ferry Huberts [Thu, 21 Jun 2012 18:23:28 +0000 (20:23 +0200)]
linux: add forgotten SHAREDIR make variable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years ago(GNU/Linux build) add support for prefix, libdir, sbindir, etc vars and set default...
Hans-Christoph Steiner [Tue, 5 Jun 2012 19:53:41 +0000 (15:53 -0400)]
(GNU/Linux build) add support for prefix, libdir, sbindir, etc vars and set default prefix to /usr/local

7 years agoandroid: regex: revert fixes
Ferry Huberts [Wed, 20 Jun 2012 18:57:03 +0000 (20:57 +0200)]
android: regex: revert fixes

because Hans politely asked me to

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: use fully qualified path to ldconfig
Ferry Huberts [Wed, 20 Jun 2012 16:53:28 +0000 (18:53 +0200)]
PUD: use fully qualified path to ldconfig

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoolsrd-adhoc-setup: replace hard-coded if name with the right variable
Hans-Christoph Steiner [Wed, 20 Jun 2012 16:28:44 +0000 (12:28 -0400)]
olsrd-adhoc-setup: replace hard-coded if name with the right variable

7 years agoandroid: do not echo makefile commands for regex build
Ferry Huberts [Sat, 9 Jun 2012 08:57:59 +0000 (10:57 +0200)]
android: do not echo makefile commands for regex build

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: add to default Linux and Android make targets
Ferry Huberts [Tue, 19 Jun 2012 12:57:09 +0000 (14:57 +0200)]
PUD: add to default Linux and Android make targets

It now compile correctly on OpenWRT and Android

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: supported on Android
Ferry Huberts [Tue, 19 Jun 2012 07:01:07 +0000 (09:01 +0200)]
PUD: supported on Android

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: need an in_port_t typedef on Android
Ferry Huberts [Tue, 19 Jun 2012 07:21:21 +0000 (09:21 +0200)]
PUD: need an in_port_t typedef on Android

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: remove usage of getifaddrs
Ferry Huberts [Tue, 19 Jun 2012 09:39:38 +0000 (11:39 +0200)]
PUD: remove usage of getifaddrs

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: make name a normal char array in _TRxTxNetworkInterface
Ferry Huberts [Tue, 19 Jun 2012 09:37:27 +0000 (11:37 +0200)]
PUD: make name a normal char array in _TRxTxNetworkInterface

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: remove ipAddress from _TRxTxNetworkInterface struct
Ferry Huberts [Tue, 19 Jun 2012 09:25:05 +0000 (11:25 +0200)]
PUD: remove ipAddress from _TRxTxNetworkInterface struct

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: minor documentation tag fixup
Ferry Huberts [Tue, 19 Jun 2012 09:34:22 +0000 (11:34 +0200)]
PUD: minor documentation tag fixup

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nmealib: import v0.6.10
Ferry Huberts [Tue, 19 Jun 2012 11:17:52 +0000 (13:17 +0200)]
PUD: nmealib: import v0.6.10

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nmealib: get rid of NMEA_ASSERT
Ferry Huberts [Tue, 19 Jun 2012 11:04:33 +0000 (13:04 +0200)]
PUD: nmealib: get rid of NMEA_ASSERT

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nmealib: remove unused NMEA_INLINE define
Ferry Huberts [Tue, 19 Jun 2012 10:40:29 +0000 (12:40 +0200)]
PUD: nmealib: remove unused NMEA_INLINE define

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nmealib: get rid of NMEA_POSFIX define
Ferry Huberts [Tue, 19 Jun 2012 10:40:04 +0000 (12:40 +0200)]
PUD: nmealib: get rid of NMEA_POSFIX define

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: regex: fix some eclipse warnings
Ferry Huberts [Tue, 19 Jun 2012 11:34:57 +0000 (13:34 +0200)]
android: regex: fix some eclipse warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoMakefile.inc: workaround for Android WARNINGS flags
Ferry Huberts [Tue, 19 Jun 2012 10:55:31 +0000 (12:55 +0200)]
Makefile.inc: workaround for Android WARNINGS flags

until we have a real solution

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: wireformat: no need to check OS, done by PUD makefile
Ferry Huberts [Sat, 9 Jun 2012 09:34:04 +0000 (11:34 +0200)]
PUD: wireformat: no need to check OS, done by PUD makefile

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nmealib: remove -Werror from CFLAGS
Ferry Huberts [Sat, 9 Jun 2012 08:51:14 +0000 (10:51 +0200)]
PUD: nmealib: remove -Werror from CFLAGS

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: remove -Werror from CFLAGS
Ferry Huberts [Fri, 8 Jun 2012 21:58:23 +0000 (23:58 +0200)]
PUD: remove -Werror from CFLAGS

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: improve unsupported OS reporting
Ferry Huberts [Fri, 8 Jun 2012 21:58:01 +0000 (23:58 +0200)]
PUD: improve unsupported OS reporting

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agosgwdynspeed: add to default Linux and Android make targets
Ferry Huberts [Sat, 9 Jun 2012 09:03:17 +0000 (11:03 +0200)]
sgwdynspeed: add to default Linux and Android make targets

It now compile correctly on OpenWRT and Android

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agosgwdynspeed: supported on android
Ferry Huberts [Fri, 8 Jun 2012 19:26:01 +0000 (21:26 +0200)]
sgwdynspeed: supported on android

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agosgwdynspeed: remove -Werror from CFLAGS
Ferry Huberts [Sat, 9 Jun 2012 08:50:54 +0000 (10:50 +0200)]
sgwdynspeed: remove -Werror from CFLAGS

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: regex: fix compiler warnings
Ferry Huberts [Fri, 8 Jun 2012 19:10:34 +0000 (21:10 +0200)]
android: regex: fix compiler warnings

../../android/regex/engine.c: In function 'sdissect':
../../android/regex/engine.c:312: warning: switch missing default case

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: regex: fix compiler warnings
Ferry Huberts [Fri, 8 Jun 2012 19:06:42 +0000 (21:06 +0200)]
android: regex: fix compiler warnings

../../android/regex/regcomp.c: In function 'pluscount':
../../android/regex/regcomp.c:1503: warning: switch missing default case

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: regex: fix compiler warnings
Ferry Huberts [Fri, 8 Jun 2012 19:04:54 +0000 (21:04 +0200)]
android: regex: fix compiler warnings

../../android/regex/regcomp.c: In function 'mcinvert':
../../android/regex/regcomp.c:1193: warning: unused parameter 'p'
../../android/regex/regcomp.c: In function 'mccase':
../../android/regex/regcomp.c:1206: warning: unused parameter 'p'

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid:regex: fix compiler warning
Ferry Huberts [Fri, 8 Jun 2012 18:58:42 +0000 (20:58 +0200)]
android:regex: fix compiler warning

../../android/regex/regcomp.c: In function 'regcomp':
../../android/regex/regcomp.c:171: warning: cast discards qualifiers from pointer target type

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: regex: fix compiler warnings
Ferry Huberts [Fri, 8 Jun 2012 18:56:02 +0000 (20:56 +0200)]
android: regex: fix compiler warnings

../../android/regex/regerror.c:54: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:54: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:55: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:55: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:56: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:56: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:57: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:57: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:58: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:58: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:59: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:59: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:60: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:60: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:61: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:61: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:62: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:62: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:63: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:63: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:64: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:64: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:65: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:65: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:66: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:66: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:67: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:67: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:68: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:68: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:69: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:69: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:70: warning: initialization discards qualifiers from pointer target type
../../android/regex/regerror.c:70: warning: initialization discards qualifiers from pointer target type

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: regex: fix compile warnings
Ferry Huberts [Fri, 8 Jun 2012 18:49:40 +0000 (20:49 +0200)]
android: regex: fix compile warnings

../../android/regex/cname.h:43: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:44: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:45: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:46: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:47: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:48: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:49: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:50: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:51: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:52: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:53: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:54: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:55: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:56: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:57: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:58: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:59: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:60: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:61: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:62: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:63: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:64: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:65: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:66: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:67: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:68: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:69: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:70: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:71: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:72: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:73: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:74: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:75: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:76: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:77: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:78: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:79: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:80: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:81: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:82: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:83: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:84: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:85: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:86: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:87: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:88: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:89: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:90: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:91: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:92: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:93: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:94: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:95: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:96: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:97: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:98: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:99: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:100: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:101: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:102: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:103: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:104: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:105: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:106: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:107: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:108: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:109: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:110: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:111: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:112: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:113: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:114: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:115: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:116: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:117: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:118: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:119: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:120: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:121: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:122: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:123: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:124: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:125: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:126: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:127: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:128: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:129: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:130: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:131: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:132: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:133: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:134: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:135: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:136: error: initialization discards qualifiers from pointer target type
../../android/regex/cname.h:137: error: initialization discards qualifiers from pointer target type

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoandroid: regex: fix compile warnings
Ferry Huberts [Fri, 8 Jun 2012 18:49:12 +0000 (20:49 +0200)]
android: regex: fix compile warnings

In file included from ../../android/regex/regcomp.c:48:
../../android/regex/cclass.h:44: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:44: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:44: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:46: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:46: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:47: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:48: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:48: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:48: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:49: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:49: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:49: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:51: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:51: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:51: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:52: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:52: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:54: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:55: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:55: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:56: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:57: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:57: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:59: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:60: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:60: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:61: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:62: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:62: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:62: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:63: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:63: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:64: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:65: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:65: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:66: error: initialization discards qualifiers from pointer target type
../../android/regex/cclass.h:67: error: initialization discards qualifiers from pointer target type

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agohttpinfo: fix compile warning
Ferry Huberts [Fri, 8 Jun 2012 18:33:31 +0000 (20:33 +0200)]
httpinfo: fix compile warning

src/olsrd_httpinfo.c: In function 'build_ipaddr_link':
src/olsrd_httpinfo.c:745: error: passing argument 1 of 'gethostbyaddr' from incompatible pointer type
/home/ferry/android/android-ndk-r8/platforms/android-4/arch-arm/usr/include/netdb.h:204: note: expected 'const char *' but argument is of type 'const union olsr_ip_addr * const'

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agounix: fix compile warning
Ferry Huberts [Fri, 8 Jun 2012 18:24:30 +0000 (20:24 +0200)]
unix: fix compile warning

src/unix/log.c: In function 'olsr_openlog':
src/unix/log.c:56: error: unused parameter 'ident'

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoMakefile: quote some arguments
Ferry Huberts [Sat, 9 Jun 2012 09:20:11 +0000 (11:20 +0200)]
Makefile: quote some arguments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: fix compile warnings
Ferry Huberts [Fri, 8 Jun 2012 14:26:35 +0000 (16:26 +0200)]
PUD: fix compile warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agojsoninfo: fix compile warnings on windows
Ferry Huberts [Fri, 8 Jun 2012 13:08:33 +0000 (15:08 +0200)]
jsoninfo: fix compile warnings on windows

src/olsrd_jsoninfo.c: In function 'ipc_print_interfaces':
src/olsrd_jsoninfo.c:1030:24: error: unused variable 'linkpath' [-Werror=unused-variable]
src/olsrd_jsoninfo.c:1030:8: error: unused variable 'path' [-Werror=unused-variable]
src/olsrd_jsoninfo.c:1029:7: error: unused variable 'linklen' [-Werror=unused-variable]

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agojsoninfo: get kernel module for a given interface using /sys/class/net/wlan0/device...
Hans-Christoph Steiner [Fri, 8 Jun 2012 00:13:10 +0000 (20:13 -0400)]
jsoninfo: get kernel module for a given interface using /sys/class/net/wlan0/device/driver/module

7 years agojsoninfo: noFork should be a boolean
Hans-Christoph Steiner [Fri, 8 Jun 2012 00:12:20 +0000 (20:12 -0400)]
jsoninfo: noFork should be a boolean

7 years agojsoninfo: downcase plugin keys since they can have any case, and convert int/long...
Hans-Christoph Steiner [Fri, 8 Jun 2012 00:04:22 +0000 (20:04 -0400)]
jsoninfo: downcase plugin keys since they can have any case, and convert int/long values to JSON int

7 years agojsoninfo: fully implement MID report with arrays of addresses and subarrays of aliases
Hans-Christoph Steiner [Thu, 7 Jun 2012 22:59:38 +0000 (18:59 -0400)]
jsoninfo: fully implement MID report with arrays of addresses and subarrays of aliases

7 years agojsoninfo: convert comma insertion logic to be based on depth, to support arrays in...
Hans-Christoph Steiner [Thu, 7 Jun 2012 22:26:22 +0000 (18:26 -0400)]
jsoninfo: convert comma insertion logic to be based on depth, to support arrays in arrays

7 years agojsoninfo: list IPC connection accept rules in a JSON array
Hans-Christoph Steiner [Thu, 7 Jun 2012 20:20:01 +0000 (16:20 -0400)]
jsoninfo: list IPC connection accept rules in a JSON array

7 years agojsoninfo: simplify parsing by removing the "data": [] array surrounding the data
Hans-Christoph Steiner [Thu, 7 Jun 2012 20:19:13 +0000 (16:19 -0400)]
jsoninfo: simplify parsing by removing the "data": [] array surrounding the data

7 years agojsoninfo: clean up comments and debug stuff
Hans-Christoph Steiner [Wed, 6 Jun 2012 18:48:24 +0000 (14:48 -0400)]
jsoninfo: clean up comments and debug stuff

7 years agojsoninfo: rename the two MTU data points for clarity
Hans-Christoph Steiner [Wed, 6 Jun 2012 18:10:53 +0000 (14:10 -0400)]
jsoninfo: rename the two MTU data points for clarity

7 years agoRevert "linux: add support for common (autoconf) make variables (v3)"
Ferry Huberts [Thu, 7 Jun 2012 22:33:08 +0000 (00:33 +0200)]
Revert "linux: add support for common (autoconf) make variables (v3)"

This reverts commit 9b5949f7ac8ce5b2829a1101e9fdda53aae94042.

Pushed by accident.

7 years agoPUD: posFile: do not use nanosecond stat information
Ferry Huberts [Wed, 6 Jun 2012 15:01:59 +0000 (17:01 +0200)]
PUD: posFile: do not use nanosecond stat information

It poses problems for OpenWRT builds and is not really needed
since we enforce a minimum poll interval of 1 second.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: posFile: use case insensitive regular expression matching
Ferry Huberts [Wed, 6 Jun 2012 14:58:50 +0000 (16:58 +0200)]
PUD: posFile: use case insensitive regular expression matching

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: posFile: fix leaking regexComment on error path
Ferry Huberts [Wed, 6 Jun 2012 14:58:17 +0000 (16:58 +0200)]
PUD: posFile: fix leaking regexComment on error path

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: posFile: add comments
Ferry Huberts [Wed, 6 Jun 2012 14:57:48 +0000 (16:57 +0200)]
PUD: posFile: add comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: don't use 'struct sockaddr *' when not needed
Ferry Huberts [Wed, 6 Jun 2012 10:27:24 +0000 (12:27 +0200)]
PUD: don't use 'struct sockaddr *' when not needed

just use 'void *'

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: remove unused setting of address variable for IPv6 case
Ferry Huberts [Wed, 6 Jun 2012 17:16:09 +0000 (19:16 +0200)]
PUD: nwif: remove unused setting of address variable for IPv6 case

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: remove unused olsr interfaces list
Ferry Huberts [Wed, 6 Jun 2012 16:57:58 +0000 (18:57 +0200)]
PUD: nwif: remove unused olsr interfaces list

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: make the tx socket binding work for IPv6
Ferry Huberts [Tue, 5 Jun 2012 20:44:41 +0000 (22:44 +0200)]
PUD: nwif: make the tx socket binding work for IPv6

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: make setting ttl on tx socket work for IPv6
Ferry Huberts [Tue, 5 Jun 2012 20:41:27 +0000 (22:41 +0200)]
PUD: nwif: make setting ttl on tx socket work for IPv6

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: make joining the multicast group on the rx socket creation work for IPv6
Ferry Huberts [Tue, 5 Jun 2012 20:42:32 +0000 (22:42 +0200)]
PUD: nwif: make joining the multicast group on the rx socket creation work for IPv6

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: fix indenting
Ferry Huberts [Tue, 5 Jun 2012 20:37:29 +0000 (22:37 +0200)]
PUD: nwif: fix indenting

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: only evaluatie IPv4 and IPv6 addresses
Ferry Huberts [Tue, 5 Jun 2012 20:37:13 +0000 (22:37 +0200)]
PUD: nwif: only evaluatie IPv4 and IPv6 addresses

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: make sure {r,t}xNonOlsr interfaces are of the right IP version
Ferry Huberts [Tue, 5 Jun 2012 20:35:09 +0000 (22:35 +0200)]
PUD: nwif: make sure {r,t}xNonOlsr interfaces are of the right IP version

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: use interface address to detect whether it's an olsr interface
Ferry Huberts [Tue, 5 Jun 2012 20:31:58 +0000 (22:31 +0200)]
PUD: nwif: use interface address to detect whether it's an olsr interface

more reliable

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: txTtl must be an int
Ferry Huberts [Tue, 5 Jun 2012 20:22:59 +0000 (22:22 +0200)]
PUD: nwif: txTtl must be an int

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: create a downlink socket for the same IP version as the configured uplink...
Ferry Huberts [Tue, 5 Jun 2012 19:40:17 +0000 (21:40 +0200)]
PUD: nwif: create a downlink socket for the same IP version as the configured uplink address

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: hand the interface address to create{R,T}xInterface
Ferry Huberts [Tue, 5 Jun 2012 19:36:00 +0000 (21:36 +0200)]
PUD: nwif: hand the interface address to create{R,T}xInterface

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: hand rxMcAddr to createRxInterface and createRxSocket
Ferry Huberts [Tue, 5 Jun 2012 19:17:08 +0000 (21:17 +0200)]
PUD: nwif: hand rxMcAddr to createRxInterface and createRxSocket

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: reorder some variables
Ferry Huberts [Tue, 5 Jun 2012 13:42:26 +0000 (15:42 +0200)]
PUD: nwif: reorder some variables

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: use the correct address size in rx and downlink socket binding
Ferry Huberts [Mon, 4 Jun 2012 08:05:41 +0000 (10:05 +0200)]
PUD: nwif: use the correct address size in rx and downlink socket binding

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: nwif: add a documentation tag
Ferry Huberts [Tue, 5 Jun 2012 19:41:21 +0000 (21:41 +0200)]
PUD: nwif: add a documentation tag

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: pud: make IPv6 work in sendToAllTxInterfaces
Ferry Huberts [Mon, 4 Jun 2012 07:39:57 +0000 (09:39 +0200)]
PUD: pud: make IPv6 work in sendToAllTxInterfaces

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: pud: remove unused sender fields from packetReceivedFromDownlink
Ferry Huberts [Sun, 3 Jun 2012 12:04:25 +0000 (14:04 +0200)]
PUD: pud: remove unused sender fields from packetReceivedFromDownlink

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: receiver: make uplink work with IPv6
Ferry Huberts [Mon, 4 Jun 2012 07:38:05 +0000 (09:38 +0200)]
PUD: receiver: make uplink work with IPv6

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: receiver: do not touch olsr_cnf->pud_position when HTTPINFO_PUD is not defined
Ferry Huberts [Wed, 6 Jun 2012 10:43:04 +0000 (12:43 +0200)]
PUD: receiver: do not touch olsr_cnf->pud_position when HTTPINFO_PUD is not defined

because that field isn't there in that case.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: clear nodeIdBinary.set in setNodeId
Ferry Huberts [Wed, 6 Jun 2012 13:46:40 +0000 (15:46 +0200)]
PUD: cfg: clear nodeIdBinary.set in setNodeId

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: return default port when addr is NULL in getOlsrSockaddrPort
Ferry Huberts [Wed, 6 Jun 2012 13:46:04 +0000 (15:46 +0200)]
PUD: cfg: return default port when addr is NULL in getOlsrSockaddrPort

Also, do nothing in setOlsrSockaddrPort if addr is NULL

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: use in_port_t when dealing with ports
Ferry Huberts [Wed, 6 Jun 2012 13:34:28 +0000 (15:34 +0200)]
PUD: cfg: use in_port_t when dealing with ports

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: simplify getOlsrSockaddrPortAddress function further
Ferry Huberts [Wed, 6 Jun 2012 12:15:37 +0000 (14:15 +0200)]
PUD: cfg: simplify getOlsrSockaddrPortAddress function further

and add setOlsrSockaddrPort

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: reorder uplink/downlink functions
Ferry Huberts [Mon, 4 Jun 2012 14:28:12 +0000 (16:28 +0200)]
PUD: cfg: reorder uplink/downlink functions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: fix a comment
Ferry Huberts [Mon, 4 Jun 2012 14:27:39 +0000 (16:27 +0200)]
PUD: cfg: fix a comment

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: review and simplify
Ferry Huberts [Mon, 4 Jun 2012 14:16:10 +0000 (16:16 +0200)]
PUD: cfg: review and simplify

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: replace 'Configured %s' by 'Value of parameter %s'
Ferry Huberts [Mon, 4 Jun 2012 12:26:10 +0000 (14:26 +0200)]
PUD: cfg: replace 'Configured %s' by 'Value of parameter %s'

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: remove pointless comments of setters
Ferry Huberts [Mon, 4 Jun 2012 12:08:50 +0000 (14:08 +0200)]
PUD: cfg: remove pointless comments of setters

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: use readBool
Ferry Huberts [Mon, 4 Jun 2012 11:52:34 +0000 (13:52 +0200)]
PUD: cfg: use readBool

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
7 years agoPUD: cfg: use readUS
Ferry Huberts [Mon, 4 Jun 2012 11:03:10 +0000 (13:03 +0200)]
PUD: cfg: use readUS

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>