summaryrefslogtreecommitdiff
path: root/bgpd/bgp_flowspec_util.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-07-02 17:25:32 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-07-24 12:17:57 +0200
commit63a0b7a9f1bf29ed6bca38b4c5de422b6399cab9 (patch)
treec73b348810c838b38398be297695b059836acd54 /bgpd/bgp_flowspec_util.h
parent88055124199e4ee0df7b10cdd5f36e7a454e7bca (diff)
bgpd: display more than one FS entre per IP
because the IP destination criterium may match several entries, the show command may return more than one entry. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_flowspec_util.h')
-rw-r--r--bgpd/bgp_flowspec_util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_flowspec_util.h b/bgpd/bgp_flowspec_util.h
index 2d16e57a36..9bf05847d3 100644
--- a/bgpd/bgp_flowspec_util.h
+++ b/bgpd/bgp_flowspec_util.h
@@ -50,8 +50,8 @@ struct bgp_pbr_entry_main;
extern int bgp_flowspec_match_rules_fill(uint8_t *nlri_content, int len,
struct bgp_pbr_entry_main *bpem);
-extern struct bgp_node *bgp_flowspec_get_match_per_ip(afi_t afi,
- struct bgp_table *rib,
- struct prefix *match,
- int prefix_check);
+extern bool bgp_flowspec_contains_prefix(struct prefix *pfs,
+ struct prefix *input,
+ int prefix_check);
+
#endif /* _FRR_BGP_FLOWSPEC_UTIL_H */