]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_zebra.c
bgpd: change priority of fs pbr rules
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 30 Nov 2018 13:13:37 +0000 (14:13 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 29 Jan 2019 13:15:10 +0000 (14:15 +0100)
commit8112a7a0723561ea3d959a0c72ba8b3c4134f316
treea751859219f04adddf0dd8a3d59357774ef243b1
parentffee150ec42cce9ba6dd66d451965849ede0bd79
bgpd: change priority of fs pbr rules

two kind of rules are being set from bgp flowspec: ipset based rules,
and ip rule rules. default route rules may have a lower priority than
the other rules ( that do not support default rules). so, if an ipset
rule without fwmark is being requested, then priority is arbitrarily set
to 1. the other case, priority is set to 0.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_pbr.c
bgpd/bgp_pbr.h
bgpd/bgp_zebra.c