]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_flowspec_util.h
Merge pull request #5717 from pguibert6WIND/flowspec_issue_redistribute
[mirror_frr.git] / bgpd / bgp_flowspec_util.h
index 2d16e57a36fdc9de6dd09fc2e5cb98797488687b..2ce911da4e8d1b6b260ba611023164a9d529b3b0 100644 (file)
@@ -50,8 +50,12 @@ 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);
+
+extern int bgp_flowspec_get_first_nh(struct bgp *bgp,
+                                    struct bgp_path_info *pi,
+                                    struct prefix *nh);
+
 #endif /* _FRR_BGP_FLOWSPEC_UTIL_H */