]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_flowspec_util.h
bgpd: partially revert e23b9ef6d271223d29c7f91a10d98aa6dcd252b3
[mirror_frr.git] / bgpd / bgp_flowspec_util.h
index e4454ab4dba3fe87876ab40def2a74a8cf1abb98..9bf05847d3aeb879d5cbb140f0c74329cd42cd93 100644 (file)
@@ -41,21 +41,17 @@ extern int bgp_flowspec_ip_address(enum bgp_flowspec_util_nlri_t type,
                                   uint32_t max_len,
                                   void *result, int *error);
 
-extern int bgp_flowspec_tcpflags_decode(enum bgp_flowspec_util_nlri_t type,
+extern int bgp_flowspec_bitmask_decode(enum bgp_flowspec_util_nlri_t type,
                                        uint8_t *nlri_ptr,
                                        uint32_t max_len,
                                        void *result, int *error);
 
-extern int bgp_flowspec_fragment_type_decode(enum bgp_flowspec_util_nlri_t type,
-                                            uint8_t *nlri_ptr,
-                                            uint32_t max_len,
-                                            void *result, int *error);
 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 */