23 Jan
2023
23 Jan
'23
4:03 p.m.
On Mon, 23 Jan 2023, haima via Bird-users wrote:
function is_rpki_invalid () { } if roa_check(roa_table4, net, bgp_path.last) = ROA_INVALID then return true if roa_check(roa_table6, net, bgp_path.last) = ROA_INVALID then return true; return false; }
I might be totally wrong here, but last time I tried this approach, I finally had to use something like this: if (net.type = NET_IP4 && roa_check(roa_table4, net, bgp_path.last) = ROA_INVALID) then { … } if (net.type = NET_IP6 && roa_check(roa_table6, net, bgp_path.last) = ROA_INVALID) then { … } Regards, Robert