diff options
| author | vivek <vivek@cumulusnetworks.com> | 2017-05-15 13:48:18 -0700 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-12 12:34:33 -0400 | 
| commit | 58cf4b28ff00d1ebb6a64e79393f5faa11567ac3 (patch) | |
| tree | 8a2fdabaf59008a184a886162cc96b9332e8bfcd /bgpd/bgp_nexthop.h | |
| parent | 86f6f09e2e546ea93e550cf9028bd8f6237bcb38 (diff) | |
bgpd: Fix check for martian next hops
Ensure that the check for martian next hop is correct, including for MP
nexthops, if IPv4.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by:   Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nexthop.h')
| -rw-r--r-- | bgpd/bgp_nexthop.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_nexthop.h b/bgpd/bgp_nexthop.h index c5d9232e33..3aa20a9d5b 100644 --- a/bgpd/bgp_nexthop.h +++ b/bgpd/bgp_nexthop.h @@ -74,7 +74,7 @@ extern void bgp_connected_add (struct bgp *bgp, struct connected *c);  extern void bgp_connected_delete (struct bgp *bgp, struct connected *c);  extern int bgp_multiaccess_check_v4 (struct in_addr, struct peer *);  extern int bgp_config_write_scan_time (struct vty *); -extern int bgp_nexthop_self (struct bgp *, struct attr *); +extern int bgp_nexthop_self (struct bgp *, struct in_addr);  extern struct bgp_nexthop_cache *bnc_new(void);  extern void bnc_free(struct bgp_nexthop_cache *bnc);  extern void bnc_nexthop_free(struct bgp_nexthop_cache *bnc);  | 
