diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-08 19:11:39 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-04-30 11:56:23 +0200 | 
| commit | 47555ee921fadc4910eebce156ea773da8d46324 (patch) | |
| tree | 0ca895dec73754b9c22c265a16d74022e022006a /bgpd/bgp_flowspec_util.h | |
| parent | b46b6f1a550cda8d3d4231017fe0c87f31e0acdc (diff) | |
bgpd: add convert function from flowspec to pbr match
This utility function analyses flowspec nlri and converts it into
readable structures. The structure is based on bgp_pbr_match structure
previously defined.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_flowspec_util.h')
| -rw-r--r-- | bgpd/bgp_flowspec_util.h | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_flowspec_util.h b/bgpd/bgp_flowspec_util.h index aa21461102..e4454ab4db 100644 --- a/bgpd/bgp_flowspec_util.h +++ b/bgpd/bgp_flowspec_util.h @@ -50,6 +50,9 @@ 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,  | 
