Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
#
# olsrTtl is the TTL that is used when sending messages over the OLSR
- # networks
+ # networks. Setting this to 0 (zero) will disable distribution
+ # of position updates over the OLSR networks.
#
# Default: 64
#
return true;
}
- if ((olsrTtl < 1) /* || (olsrTtl > MAX_TTL) */) {
- pudError(false, "Value of parameter %s (%u) is outside of valid range 1-%u",
- valueName, olsrTtl, MAX_TTL);
- return true;
- }
-
return false;
}
/*
* push out to all OLSR interfaces
*/
- if (((interfaces & TX_INTERFACE_OLSR) != 0) && (pu_size > 0)) {
+ if (((interfaces & TX_INTERFACE_OLSR) != 0) && getOlsrTtl() && (pu_size > 0)) {
int r;
struct interface *ifn;
for (ifn = ifnet; ifn; ifn = ifn->int_next) {