conf: calculate the checksum over the effective configuration
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 2 Jan 2017 14:14:47 +0000 (15:14 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 4 Jan 2017 08:47:11 +0000 (09:47 +0100)
commit1130cbf9146502d56c135081af7f5d1a5b605d09
tree1b799cb7da4ef3a1a4c471e250fda52753f0d966
parent88236c03f4b4bffd3f4552a26dc1d3ced82ce8a0
conf: calculate the checksum over the effective configuration

Can be disabled by compiling with 'NOCONFIGCHECKSUM=1'.

We can't simply checksum the olsr_cnf struct because it contains pointers
to other structs that would vary every time.
This is the simplest solution.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile.inc
src/cfgparser/local.mk
src/cfgparser/olsrd_conf_checksum.c [new file with mode: 0644]
src/cfgparser/olsrd_conf_checksum.h [new file with mode: 0644]
src/cfgparser/oscan.lex
src/main.c