Re: relayd routers code need some love

2015-03-05 Thread Philip Guenther
On Thu, Mar 5, 2015 at 2:02 PM, sven falempin wrote: ... > AFAI Understand > > ./pfe.c: rt->rt_conf.flags &= ~(F_DOWN); > is completly useless Hmm? Maybe I'm misunderstanding your, but that's the normal syntax for clearing bits (F_DOWN in this case) in a flag word: you mask the flag word against

Re: relayd routers code need some love

2015-03-05 Thread sven falempin
On Thu, Mar 5, 2015 at 5:02 PM, sven falempin wrote: > Intro, i looked at the relayd router code, because i'd like to change > some route given some conditions. Especially i'd like to change some > rules when the route is added , and flush this anchor when route is > removed (or flush read when ch

relayd routers code need some love

2015-03-05 Thread sven falempin
Intro, i looked at the relayd router code, because i'd like to change some route given some conditions. Especially i'd like to change some rules when the route is added , and flush this anchor when route is removed (or flush read when changed). I think about copying the ifstated mechanism to provi