[SR-Users] prevent relaying to myself

Daniel-Constantin Mierla miconda at gmail.com
Fri Feb 28 10:16:30 CET 2014


On 28/02/14 08:49, Daniel-Constantin Mierla wrote:
> Hello,
>
> you have to check if $du or $ru is matching myself, something like:
>
> if(($du==$null) {
A typo above, it should be != .

Daniel

> if(is_myself("$du")) {
>       # goes to myself
>   }
> } else {
>   if(is_myself("$ru")) {
>     # goes to myself
>   }
> }
>
> I think there is a variable giving next hop address, simplifying the 
> block above in one IF, but I don't have time now to check the pv 
> cookbook.
>
> Cheers,
> Daniel
>
> On 26/02/14 22:48, Henry Fernandes wrote:
>> Is there a way to prevent relaying requests to myself in route[RELAY]?
>> -H
>>
>

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list