Skip to content

Commit

Permalink
* fix, pre_tag_map: dst_roa knob was unable to match RPKI status, exc…
Browse files Browse the repository at this point in the history
…ept for 'u'
  • Loading branch information
paololucente committed Jun 3, 2024
1 parent c7a3d06 commit 6640470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pretag_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,10 @@ int pretag_dst_roa_handler(struct packet_ptrs *pptrs, void *unused, void *e)
struct id_entry *entry = e;
u_int8_t roa = ROA_STATUS_UNKNOWN;

if (config.bgp_daemon_dst_roa_type & BGP_DST_PRIMITIVES_BGP) {
if (dst_ret) roa = pptrs->dst_roa;
}

if (entry->key.dst_roa.n == roa) return (FALSE | entry->key.dst_roa.neg);
else return (TRUE ^ entry->key.dst_roa.neg);
}
Expand Down

0 comments on commit 6640470

Please sign in to comment.