[Olsr-dev] [PATCH v2 1/1] smart gateway: add threshold configuration parameter
Ferry Huberts
(spam-protected)
Mon Dec 12 13:15:53 CET 2011
On 12/12/2011 01:11 PM, Henning Rogge wrote:
> On 12/12/2011 01:01 PM, Ferry Huberts wrote:
>> From: Ferry Huberts<(spam-protected)>
>>
>> We can now keep choosing a better gateway by setting the
>> configuration setting "SmartGatewayThreshold" to a value
>> larger than zero.
>>
>> The costs for a new smart gateway must be less than the
>> costs of the current smart gateway multiplied by
>> SmartGatewayThreshold (its default is 1.0) in order for
>> it to be chosen as the new smart gateway.
>>
>> This new configuration parameter has a similar function
>> and meaning as the NAT threshold configuration parameter.
>
>> diff --git a/Makefile.inc b/Makefile.inc
>> index a6da618..96fe94e 100644
>> --- a/Makefile.inc
>> +++ b/Makefile.inc
>> @@ -159,6 +159,7 @@ ifneq ($(MUDFLAP),0)
>> LIBS += -lmudflapth
>> endif
>> LIBS += $(OS_LIB_PTHREAD)
>> +LIBS += -lm
> NACK
>
> We had lots of trouble getting all floating point operations out of the
> OLSR.org core code, we do not want them back.
>
how about making it a percentage then?
> Do you think this could be done with integer arithmetics? Or maybe as a
> plugin that overwrites the default gateway handler?
>
> Henning Rogge
>
>
>
--
Ferry Huberts
More information about the Olsr-dev
mailing list