diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-12-04 09:33:21 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-12-28 18:10:26 +0100 | 
| commit | 0378bcaad6736940867fc0a0b46e196f3e95d7ce (patch) | |
| tree | 714685a9f194caac1ee5db5bbe6859beaf26b306 /bgpd/bgp_flowspec_util.h | |
| parent | ca6541963cd00cc24d53debee2c570810c609aec (diff) | |
bgpd: flowspec redirect IP info is retrieved into nh tracking
redirect IP nh of flowspec entry is retrieved so that the nexthop
IP information is injected into the nexthop tracking, and is associated
to the bgp_path structure. This permits validating or unvalidating the
bgp_path for injection in zebra or not.
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 | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_flowspec_util.h b/bgpd/bgp_flowspec_util.h index 9bf05847d3..2ce911da4e 100644 --- a/bgpd/bgp_flowspec_util.h +++ b/bgpd/bgp_flowspec_util.h @@ -54,4 +54,8 @@ 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 */  | 
