Hello!

I have an idea to write common filters like 

define RF_REDISTRIBUTE_CONNECTED 0x10
define RF_REDISTRIBUTE_STATIC 0x20
.....

protocol ospf main_ospf {
export where f_main_ospf_e(RF_REDISTRIBUTE_CONNECTED | RF_REDISTRIBUTE_STATIC);
.....
}

function f_main_ospf_e(int flags) {
if(source ~ [RTS_STATIC, RTS_STATIC_DEVICE] && (flags & RF_REDISTRIBUTE_STATIC)
........
}

Unfortunatelly there are not bit operators :( But may be there is another way?

Regards,
Boris

--

С уважением,
Борис Коваленко