Is such a patch something upstream would take? Don't know when I'll have a chance to work on such a thing, likely some time from now, but any tips on where to poke at to get started? I've never done any serious reading or modification of BIRD.

Matt

On 4/6/21 21:41, Ondrej Zajicek wrote:
On Tue, Apr 06, 2021 at 07:26:39PM -0400, Matt Corallo wrote:
Hmm, actually, I take that back, sorting them would require re-serializing
the wire format, which I've thus far entirely avoided. I suppose I could
drop the whole birdc thing, spin up a BGP daemon and use that, but that's a
lot more work. Is there an easy way/patch to get birdc to output flowspec
rules sorted according to the RFC?

I see the issue. BIRD does not implement this sorting as it is just for
flowspec rule execution (i.e. configuring firewall), it is not used in
BGP session. You could perhaps patch BIRD to do that by adding a mode to
'show route' command that would copy all routes to a buffer, do qsort()
on that, and then send them to birdc. We do not do that for regular
routes, but it could be a reasonable approach for flowspec routes (as
i would expect there is much lower number of them).

Reply via email to