olsrd.git
6 years agobuild: only print the md5 hash in hash_source.sh
Ferry Huberts [Wed, 10 Jul 2013 16:00:52 +0000 (18:00 +0200)]
build: only print the md5 hash in hash_source.sh

Some md5sum programs print in the format
  md5_hash -

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agobuild: really _ignore_ builddata.c when hashing sources
Ferry Huberts [Wed, 10 Jul 2013 15:56:51 +0000 (17:56 +0200)]
build: really _ignore_ builddata.c when hashing sources

Somehow the -v got dropped

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoUpdate version after release of v0.6.5.4
Henning Rogge [Thu, 16 May 2013 16:37:09 +0000 (18:37 +0200)]
Update version after release of v0.6.5.4

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoRelease v0.6.5.4 v0.6.5.4
Henning Rogge [Thu, 16 May 2013 16:37:09 +0000 (18:37 +0200)]
Release v0.6.5.4

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agopud: nmealib: _nmea_parse_time not parsing hsec when given "hhmmss" format
Ferry Huberts [Mon, 13 May 2013 07:35:42 +0000 (09:35 +0200)]
pud: nmealib: _nmea_parse_time not parsing hsec when given "hhmmss" format

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agotxtinfo: prevent buffer overflow
Ferry Huberts [Fri, 3 May 2013 09:19:40 +0000 (11:19 +0200)]
txtinfo: prevent buffer overflow

Reported-by: Saverio Proto <zioproto@gmail.com>
Tested-by: Saverio Proto <zioproto@gmail.com>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: also check against the Makefile version when branching
Ferry Huberts [Wed, 24 Apr 2013 09:03:40 +0000 (11:03 +0200)]
release: also check against the Makefile version when branching

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: checkVersionIncrementing: optionally allow equal versions
Ferry Huberts [Wed, 24 Apr 2013 08:19:12 +0000 (10:19 +0200)]
release: checkVersionIncrementing: optionally allow equal versions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: only report that master changed when it was actually changed
Ferry Huberts [Wed, 24 Apr 2013 07:37:09 +0000 (09:37 +0200)]
release: only report that master changed when it was actually changed

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: do not update the version on master when it's already higher
Ferry Huberts [Wed, 24 Apr 2013 07:36:10 +0000 (09:36 +0200)]
release: do not update the version on master when it's already higher

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: refactor the checkVersionIncrementing function
Ferry Huberts [Wed, 24 Apr 2013 07:15:51 +0000 (09:15 +0200)]
release: refactor the checkVersionIncrementing function

To return a success/fail value.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: update some comments
Ferry Huberts [Wed, 24 Apr 2013 07:32:48 +0000 (09:32 +0200)]
release: update some comments

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: fix the list of generated files
Ferry Huberts [Wed, 24 Apr 2013 07:51:59 +0000 (09:51 +0200)]
release: fix the list of generated files

Copy/Paste typo

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agobuild: ignore builddata.c when hashing sources
Ferry Huberts [Mon, 22 Apr 2013 13:39:20 +0000 (15:39 +0200)]
build: ignore builddata.c when hashing sources

Not ignoring it is actually incorrect; it contains generated
meta-data about the sources.

If we don't ignore it then the hash will be different every time
for the same source tree.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoRemove mercurial ignore file; we use git
Ferry Huberts [Mon, 22 Apr 2013 12:09:10 +0000 (14:09 +0200)]
Remove mercurial ignore file; we use git

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoUpdate version after release of v0.6.5.3
Henning Rogge [Tue, 23 Apr 2013 13:59:40 +0000 (15:59 +0200)]
Update version after release of v0.6.5.3

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoRelease v0.6.5.3 v0.6.5.3
Henning Rogge [Tue, 23 Apr 2013 13:59:34 +0000 (15:59 +0200)]
Release v0.6.5.3

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoFix setsockopt for setting Traffic Class in IPv6
Ronald in 't Velt [Fri, 19 Apr 2013 16:51:49 +0000 (18:51 +0200)]
Fix setsockopt for setting Traffic Class in IPv6

HiOLSR-developers,

For your consideration:

Setting Traffic Class (the counterpart of TOS in IPv4) on OLSR IPv6 packets is currently broken.
The code does not distinguish between the IPv4 and IPv6 cases, but it should, as the required
'level' and 'optname' arguments to setsockopt differ.

I tested this patch by monitoring OLSR IPv6 packets with 'tcpdump -v': it appears to be working.

Note this is for Linux only.

This is my modest contribution to Dave Täht's quest to fix "TOS setting" in IPv6 :-)
See: http://www.bufferbloat.net/issues/249

Thanks,
Ronald

Signed-off-by: Ronald in 't Velt <velt@xs4all.nl>
6 years agopud: set local loopback for multicast tx
Ferry Huberts [Wed, 3 Apr 2013 12:48:48 +0000 (14:48 +0200)]
pud: set local loopback for multicast tx

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agomain: use /dev/urandom by default
Ferry Huberts [Wed, 27 Mar 2013 17:57:09 +0000 (13:57 -0400)]
main: use /dev/urandom by default

Reading /dev/random blocks when the system doesn't have enough
entropy. Reading /dev/urandom doesn't block and is presumed to be
good enough for our purposes

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: work around kernel IPIP module initialisation bug
Ferry Huberts [Thu, 28 Feb 2013 16:15:56 +0000 (17:15 +0100)]
gateway: work around kernel IPIP module initialisation bug

First reported by Daniel.
I've reworked his approach to retry deeper in the call chain
in order to deal with the problem where it actually occurs.

Reported-by: Daniel <daniel@makrotopia.org>
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: better detection of java jdk
Ferry Huberts [Thu, 28 Feb 2013 15:53:34 +0000 (16:53 +0100)]
pud: better detection of java jdk

It failed on Debian Squeeze 64 bits

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: detect the java include directory
Ferry Huberts [Thu, 14 Feb 2013 17:13:22 +0000 (18:13 +0100)]
pud: detect the java include directory

Fedora and Debian have this in different locations

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoUpdate version after release of v0.6.5.2
Henning Rogge [Mon, 25 Feb 2013 18:26:47 +0000 (19:26 +0100)]
Update version after release of v0.6.5.2

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoRelease v0.6.5.2 v0.6.5.2
Henning Rogge [Mon, 25 Feb 2013 18:26:41 +0000 (19:26 +0100)]
Release v0.6.5.2

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoolsrd-quagga: Fix memory leak when adding and deleting routes
Vasilis Tsiligiannis [Fri, 15 Feb 2013 13:18:31 +0000 (15:18 +0200)]
olsrd-quagga: Fix memory leak when adding and deleting routes

6 years agomain: fix the check on inet_pton return value because it returns 1 on success.
Saverio Proto [Fri, 22 Feb 2013 11:03:10 +0000 (12:03 +0100)]
main: fix the check on inet_pton return value because it returns 1 on success.

This bug was introduced in commit b3f05653fc085193504218e47458891acf7c495d and it was preventing olsrd from working in IPv6 mode.

6 years agoUpdate version after release of v0.6.5.1
Henning Rogge [Mon, 11 Feb 2013 21:10:25 +0000 (22:10 +0100)]
Update version after release of v0.6.5.1

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoRelease v0.6.5.1 v0.6.5.1
Henning Rogge [Mon, 11 Feb 2013 21:10:19 +0000 (22:10 +0100)]
Release v0.6.5.1

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agorelease: use olsrd-version prefix for files in the tarballs
Ferry Huberts [Mon, 11 Feb 2013 16:10:23 +0000 (17:10 +0100)]
release: use olsrd-version prefix for files in the tarballs

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoUpdate version after release of v0.6.5
Henning Rogge [Mon, 11 Feb 2013 08:18:02 +0000 (09:18 +0100)]
Update version after release of v0.6.5

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoRelease v0.6.5 v0.6.5
Henning Rogge [Mon, 11 Feb 2013 08:17:56 +0000 (09:17 +0100)]
Release v0.6.5

Signed-off-by: Henning Rogge <hrogge@googlemail.com>
6 years agoFix multicast join for IPv6
Henning Rogge [Thu, 7 Feb 2013 11:26:14 +0000 (12:26 +0100)]
Fix multicast join for IPv6

6 years agomain: fix pidfile compilation on windows
Ferry Huberts [Thu, 31 Jan 2013 12:33:53 +0000 (13:33 +0100)]
main: fix pidfile compilation on windows

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agomain: add -pidfile command line option
Ferry Huberts [Wed, 30 Jan 2013 12:31:08 +0000 (13:31 +0100)]
main: add -pidfile command line option

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: always select a new gateway when threshold != 0
Ferry Huberts [Thu, 31 Jan 2013 11:20:29 +0000 (12:20 +0100)]
gateway: always select a new gateway when threshold != 0

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: fix stable count dampening in gw_default_timer
Ferry Huberts [Wed, 30 Jan 2013 10:16:45 +0000 (11:16 +0100)]
gateway: fix stable count dampening in gw_default_timer

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoandroid: fix the path of the tunnel node in the /dev tree
Ferry Huberts [Thu, 17 Jan 2013 09:01:21 +0000 (10:01 +0100)]
android: fix the path of the tunnel node in the /dev tree

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: fix a revert problem
Ferry Huberts [Wed, 9 Jan 2013 12:57:50 +0000 (13:57 +0100)]
gateway: fix a revert problem

Did not notice that a line got doubled.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoRevert "linux: name is required to be non-null in olsr_os_cleanup_iptunnel"
Ferry Huberts [Wed, 9 Jan 2013 10:33:58 +0000 (11:33 +0100)]
Revert "linux: name is required to be non-null in olsr_os_cleanup_iptunnel"

This reverts commit f72ba167eb3f6c01b15edbb2efddd8a3950067f1.

It causes failures to add tunnels.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: clean up the latex directory if empty
Ferry Huberts [Tue, 11 Dec 2012 14:05:17 +0000 (15:05 +0100)]
doc: clean up the latex directory if empty

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: java make target is dependent on library make target
Ferry Huberts [Tue, 11 Dec 2012 10:56:34 +0000 (11:56 +0100)]
pud: java make target is dependent on library make target

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: change java include path to generic java include path
Ferry Huberts [Tue, 11 Dec 2012 10:43:20 +0000 (11:43 +0100)]
pud: change java include path to generic java include path

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoBranch v0.6.5
Ferry Huberts [Mon, 10 Dec 2012 13:53:53 +0000 (14:53 +0100)]
Branch v0.6.5

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoMerge branch 'release-0.6.4' into mmmm
Ferry Huberts [Mon, 10 Dec 2012 13:52:57 +0000 (14:52 +0100)]
Merge branch 'release-0.6.4' into mmmm

* release-0.6.4:
  release: the script can now also create a release branch
  release: convert some code into getPrevRelTag function
  release: convert some code into checkGitSigningKeyIsConfigured function
  release: convert some code into checkIsOlsrdGitCheckout function
  release: move into the base directory earlier
  release: fix usage of literal dot in regular expressions
  release: make gitIsGitDirectory do the correct thing
  release: move the stringTrim function up a bit

6 years agorelease: the script can now also create a release branch
Ferry Huberts [Mon, 10 Dec 2012 13:41:40 +0000 (14:41 +0100)]
release: the script can now also create a release branch

and update the versions correctly

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: convert some code into getPrevRelTag function
Ferry Huberts [Mon, 10 Dec 2012 10:41:36 +0000 (11:41 +0100)]
release: convert some code into getPrevRelTag function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: convert some code into checkGitSigningKeyIsConfigured function
Ferry Huberts [Mon, 10 Dec 2012 10:38:20 +0000 (11:38 +0100)]
release: convert some code into checkGitSigningKeyIsConfigured function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: convert some code into checkIsOlsrdGitCheckout function
Ferry Huberts [Mon, 10 Dec 2012 10:35:46 +0000 (11:35 +0100)]
release: convert some code into checkIsOlsrdGitCheckout function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: move into the base directory earlier
Ferry Huberts [Mon, 10 Dec 2012 10:34:50 +0000 (11:34 +0100)]
release: move into the base directory earlier

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: fix usage of literal dot in regular expressions
Ferry Huberts [Mon, 10 Dec 2012 12:57:07 +0000 (13:57 +0100)]
release: fix usage of literal dot in regular expressions

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: make gitIsGitDirectory do the correct thing
Ferry Huberts [Mon, 10 Dec 2012 10:30:13 +0000 (11:30 +0100)]
release: make gitIsGitDirectory do the correct thing

Some relevant code was left commented out from debugging

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agorelease: move the stringTrim function up a bit
Ferry Huberts [Mon, 10 Dec 2012 10:29:03 +0000 (11:29 +0100)]
release: move the stringTrim function up a bit

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: do not generate documentation for gui code
Ferry Huberts [Wed, 5 Dec 2012 23:26:02 +0000 (00:26 +0100)]
doc: do not generate documentation for gui code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix win32 specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:23:09 +0000 (00:23 +0100)]
doc: fix win32 specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix bsd specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:23:36 +0000 (00:23 +0100)]
doc: fix bsd specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix unix specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:23:29 +0000 (00:23 +0100)]
doc: fix unix specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix linux specific documentation tags
Ferry Huberts [Wed, 5 Dec 2012 23:01:58 +0000 (00:01 +0100)]
doc: fix linux specific documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: fix common documentation tags
Ferry Huberts [Wed, 5 Dec 2012 22:36:38 +0000 (23:36 +0100)]
doc: fix common documentation tags

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agodoc: add doxygen documentation generation
Ferry Huberts [Tue, 24 Jul 2012 07:25:49 +0000 (09:25 +0200)]
doc: add doxygen documentation generation

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agolinux: put #ifdef __linux__ around code
Ferry Huberts [Wed, 5 Dec 2012 22:32:10 +0000 (23:32 +0100)]
linux: put #ifdef __linux__ around code

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: only check smart gateway configuration on linux
Ferry Huberts [Thu, 29 Nov 2012 18:38:36 +0000 (19:38 +0100)]
gateway: only check smart gateway configuration on linux

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: enable dynamic polling of the position file
Ferry Huberts [Thu, 29 Nov 2012 20:44:47 +0000 (21:44 +0100)]
pud: enable dynamic polling of the position file

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agocookie: raise the number of cookies
Ferry Huberts [Thu, 29 Nov 2012 20:45:40 +0000 (21:45 +0100)]
cookie: raise the number of cookies

When running many plugins, I run into the cookie limit.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agopud: put plugin config in olsrd.conf.sample
Ferry Huberts [Thu, 29 Nov 2012 14:39:34 +0000 (15:39 +0100)]
pud: put plugin config in olsrd.conf.sample

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agosgwdynspeed: put plugin config in olsrd.conf.sample
Ferry Huberts [Thu, 29 Nov 2012 14:36:49 +0000 (15:36 +0100)]
sgwdynspeed: put plugin config in olsrd.conf.sample

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agobmf: check minimumLength against buffer size
Ferry Huberts [Mon, 19 Nov 2012 07:45:47 +0000 (08:45 +0100)]
bmf: check minimumLength against buffer size

minimumLength includes headerLeangth, but is larger and the most
accurate value we can use.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoMake sure calculated header length does not skip over buffer
Henning Rogge [Sun, 18 Nov 2012 19:06:43 +0000 (20:06 +0100)]
Make sure calculated header length does not skip over buffer

6 years agoRemove unnecessary asserts
Henning Rogge [Sun, 18 Nov 2012 19:00:47 +0000 (20:00 +0100)]
Remove unnecessary asserts
CID 739626 (#1 of 2): Operands don't affect result (CONSTANT_EXPRESSION_RESULT)
CID 739626 (#2 of 2): Operands don't affect result (CONSTANT_EXPRESSION_RESULT)

6 years agoCleanup error handling in ipc_init()
Henning Rogge [Sun, 18 Nov 2012 18:53:27 +0000 (19:53 +0100)]
Cleanup error handling in ipc_init()

6 years agoMerge branch 'release-0.6.4'
Ferry Huberts [Fri, 16 Nov 2012 13:17:34 +0000 (14:17 +0100)]
Merge branch 'release-0.6.4'

* release-0.6.4:
  main: add release script

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoChangelog: remove 0.6.5 preliminary changelog
Ferry Huberts [Fri, 16 Nov 2012 13:16:08 +0000 (14:16 +0100)]
Changelog: remove 0.6.5 preliminary changelog

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoUpdate version after release of v0.6.4
Ferry Huberts [Fri, 16 Nov 2012 13:09:58 +0000 (14:09 +0100)]
Update version after release of v0.6.4

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agomain: add release script
Ferry Huberts [Fri, 16 Nov 2012 13:02:48 +0000 (14:02 +0100)]
main: add release script

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agomain: remove -dispin and -dispout command line options
Ferry Huberts [Tue, 13 Nov 2012 14:03:42 +0000 (15:03 +0100)]
main: remove -dispin and -dispout command line options

Because we actually remove print_packet: tcpdump can parse
olsr packets (for years now already) so print_packet is no
longer needed.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoprint_packet: fix wrong use of sizeof()
Ferry Huberts [Tue, 13 Nov 2012 13:05:12 +0000 (14:05 +0100)]
print_packet: fix wrong use of sizeof()

Coverity:
CID 739690 (#1 of 1): Extra sizeof expression (SIZEOF_MISMATCH)
Adding "4UL /* sizeof (haddr->v4) */" to pointer "haddr" of
type "union olsr_ip_addr *" is suspicious because adding an integral
value to this pointer automatically scales that value by the size,
16 bytes, of the pointed-to type, "union olsr_ip_addr". Most likely,
"sizeof (haddr->v4)" is extraneous and should be replaced with 1.

CID 739691 (#1 of 1): Extra sizeof expression (SIZEOF_MISMATCH)
Adding "4UL /* sizeof (haddr->v4) */" to pointer "haddr" of
type "union olsr_ip_addr *" is suspicious because adding an integral
value to this pointer automatically scales that value by the size,
16 bytes, of the pointed-to type, "union olsr_ip_addr". Most likely,
"sizeof (haddr->v4)" is extraneous and should be replaced with 1.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agochangelog: update to current state
Ferry Huberts [Mon, 12 Nov 2012 20:56:21 +0000 (21:56 +0100)]
changelog: update to current state

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agobmf: do the minimum length check earlier
Ferry Huberts [Sat, 10 Nov 2012 14:33:56 +0000 (15:33 +0100)]
bmf: do the minimum length check earlier

so that getting the destPort does not (potentially) read
beyond the received bytes in the buffer.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agomain: improve random number generator seed
Ferry Huberts [Sat, 10 Nov 2012 10:44:12 +0000 (11:44 +0100)]
main: improve random number generator seed

Make it much more random when /dev/random or /dev/urandom is
available.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoneighbor_table: explicitly cast to (time_t *) in calls to localtime()
Ferry Huberts [Fri, 9 Nov 2012 16:56:06 +0000 (17:56 +0100)]
neighbor_table: explicitly cast to (time_t *) in calls to localtime()

To make it build on win64

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agohna_set: explicitly cast to (time_t *) in calls to localtime()
Ferry Huberts [Fri, 9 Nov 2012 16:55:47 +0000 (17:55 +0100)]
hna_set: explicitly cast to (time_t *) in calls to localtime()

To make it build on win64

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agowin32: remove unused getpid() function
Ferry Huberts [Fri, 9 Nov 2012 16:53:51 +0000 (17:53 +0100)]
win32: remove unused getpid() function

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agomain: do not seed the random number generator with the process id
Ferry Huberts [Fri, 9 Nov 2012 16:52:54 +0000 (17:52 +0100)]
main: do not seed the random number generator with the process id

We now seed it with the current time. This is predictable as well
but getpid() is not compatible with the windows 64bits mingw build.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agotas: remove plugin
Ferry Huberts [Mon, 5 Nov 2012 16:34:37 +0000 (17:34 +0100)]
tas: remove plugin

Unmaintained for a long time, no response on removal announcement,
no known users.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogateway: simplify stopping the cleanup timer
Ferry Huberts [Wed, 7 Nov 2012 21:51:08 +0000 (22:51 +0100)]
gateway: simplify stopping the cleanup timer

To make the code of olsr_delete_gateway_tree_entry consistent with
that of olsr_update_gateway_entry

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix the string buffer overflow better
Ferry Huberts [Wed, 7 Nov 2012 16:36:12 +0000 (17:36 +0100)]
gui: linux: fix the string buffer overflow better

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix string buffer overflow
Ferry Huberts [Wed, 7 Nov 2012 16:20:33 +0000 (17:20 +0100)]
gui: linux: fix string buffer overflow

Coverity:
CID 742359 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
At (2): You might overrun the 10 byte fixed-size string "tmp" by copying
        the return value of "g_locale_to_utf8(gchar const *, gssize,
        gsize *, gsize *, GError **)" without checking the length.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix string buffer overflow
Ferry Huberts [Wed, 7 Nov 2012 16:17:22 +0000 (17:17 +0100)]
gui: linux: fix string buffer overflow

Coverity:
CID 742358 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
At (1): You might overrun the 255 byte fixed-size string "title" by
        copying the return value of "ip_to_string(union olsr_ip_addr *)"
        without checking the length.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix inccorrect sizeof()
Ferry Huberts [Wed, 7 Nov 2012 16:10:25 +0000 (17:10 +0100)]
gui: linux: fix inccorrect sizeof()

Coverity:
CID 742357 (#1 of 1): Incorrect sizeof expression (BAD_SIZEOF)
Taking the size of arithmetic expression "512 + 1" is suspicious.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix some 'shadow' compiler warnings
Ferry Huberts [Wed, 7 Nov 2012 15:56:58 +0000 (16:56 +0100)]
gui: linux: fix some 'shadow' compiler warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix some 'may be used uninitialized' compiler warnings
Ferry Huberts [Wed, 7 Nov 2012 15:36:42 +0000 (16:36 +0100)]
gui: linux: fix some 'may be used uninitialized' compiler warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agoRevert "gui: linux: fix some 'may be used uninitialized' compiler warnings"
Ferry Huberts [Wed, 7 Nov 2012 15:36:18 +0000 (16:36 +0100)]
Revert "gui: linux: fix some 'may be used uninitialized' compiler warnings"

This reverts commit b27a04dd3106a7123810c066d59362ec6e7a7c64.

6 years agogui: linux: fix some 'unused parameter' compiler warnings
Ferry Huberts [Wed, 7 Nov 2012 13:56:47 +0000 (14:56 +0100)]
gui: linux: fix some 'unused parameter' compiler warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix a 'mixed declarations and code' compiler warning
Ferry Huberts [Wed, 7 Nov 2012 13:51:49 +0000 (14:51 +0100)]
gui: linux: fix a 'mixed declarations and code' compiler warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix 'too few arguments to function ipc_connect' compiler warning
Ferry Huberts [Wed, 7 Nov 2012 13:46:04 +0000 (14:46 +0100)]
gui: linux: fix 'too few arguments to function ipc_connect' compiler warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix some 'old-style function definition' compiler warnings
Ferry Huberts [Wed, 7 Nov 2012 13:42:59 +0000 (14:42 +0100)]
gui: linux: fix some 'old-style function definition' compiler warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix some 'discards const qualifier' compiler warnings
Ferry Huberts [Wed, 7 Nov 2012 13:36:41 +0000 (14:36 +0100)]
gui: linux: fix some 'discards const qualifier' compiler warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix some 'noreturn' compiler warnings
Ferry Huberts [Wed, 7 Nov 2012 13:35:32 +0000 (14:35 +0100)]
gui: linux: fix some 'noreturn' compiler warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: use toplevel make options
Ferry Huberts [Wed, 7 Nov 2012 13:34:47 +0000 (14:34 +0100)]
gui: linux: use toplevel make options

But disable some warnings for now.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
6 years agogui: linux: fix some 'may be used uninitialized' compiler warnings
Ferry Huberts [Wed, 7 Nov 2012 12:32:01 +0000 (13:32 +0100)]
gui: linux: fix some 'may be used uninitialized' compiler warnings

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