Handling MED value

Eiichiro Watanabe watanabe at mfeed.ad.jp
Mon Dec 26 08:54:59 CET 2011


Hi Ondrej,

It worked on my environment. Thank you!

Eiichiro

Ondrej Zajicek wrote (2011/12/22 21:46):
> On Mon, Dec 19, 2011 at 10:19:49AM +0900, Eiichiro Watanabe wrote:
>>> You can write the function like this:
>>>
>>> function TEST()
>>> int n;
>>> {
>>>     if (source = RTS_BGP) then {
>>>       n = bgp_med + 100;
>>>       if (n>= 0&&   n<   100) then
>>>         bgp_med = n;
>>>       else
>>>         bgp_med = 4294967295;
>>> }
>>>
>> uum..., It's strange.
>> That fails on my environment.
>> "bgp_med = 4294967295;" statement in line 93 also looks to fail.
>
> I checked that and it fails in 64bit environment. You can use attached
> code to fix it.
>


-- 
###################################################
Eiichiro Watanabe
Internet Multifeed Co.



More information about the Bird-users mailing list