]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_flowspec_util.h
zebra: add support for DF delay timer
[mirror_frr.git] / bgpd / bgp_flowspec_util.h
index bd89176bec729bd6eceaa92a921d5d77cdfe2bf3..6cc4854d7fb7a326ffd3710ff67a580cdbdf9eec 100644 (file)
@@ -39,7 +39,8 @@ extern int bgp_flowspec_op_decode(enum bgp_flowspec_util_nlri_t type,
 extern int bgp_flowspec_ip_address(enum bgp_flowspec_util_nlri_t type,
                                   uint8_t *nlri_ptr,
                                   uint32_t max_len,
-                                  void *result, int *error);
+                                  void *result, int *error,
+                                  afi_t afi, uint8_t *ipv6_offset);
 
 extern int bgp_flowspec_bitmask_decode(enum bgp_flowspec_util_nlri_t type,
                                        uint8_t *nlri_ptr,
@@ -48,13 +49,14 @@ extern int bgp_flowspec_bitmask_decode(enum bgp_flowspec_util_nlri_t type,
 
 struct bgp_pbr_entry_main;
 extern int bgp_flowspec_match_rules_fill(uint8_t *nlri_content, int len,
-                                        struct bgp_pbr_entry_main *bpem);
+                                        struct bgp_pbr_entry_main *bpem,
+                                        afi_t afi);
 
-extern bool bgp_flowspec_contains_prefix(struct prefix *pfs,
+extern bool bgp_flowspec_contains_prefix(const struct prefix *pfs,
                                         struct prefix *input,
                                         int prefix_check);
 
 extern bool bgp_flowspec_get_first_nh(struct bgp *bgp, struct bgp_path_info *pi,
-                                     struct prefix *nh);
+                                     struct prefix *nh, afi_t afi);
 
 #endif /* _FRR_BGP_FLOWSPEC_UTIL_H */