[Olsr-dev] [PATCH v2 1/1] smart gateway: add threshold configuration parameter

Henning Rogge (spam-protected)
Mon Dec 12 13:28:44 CET 2011


On 12/12/2011 01:15 PM, Ferry Huberts wrote:
> 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?

Percentage (which is a type of integer arithmetic) is okay. I just want 
to make sure we don't need the floating point library and data types.

Henning Rogge

-- 
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6156 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20111212/c9902abf/attachment.bin>


More information about the Olsr-dev mailing list