diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-19 23:06:45 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-19 23:13:04 +0300 | 
| commit | 860e740b3634ca480cb14cd71a988adf9e481ff8 (patch) | |
| tree | 54fc677e2c9294208d690c06dd3fd426913f1e1d /bgpd/bgp_attr_evpn.c | |
| parent | b04c1e9997d6990e2664477da384566bf876a1ac (diff) | |
bgpd: replace custom union gw_addr with struct ipaddr
BGP EVPN custom `union gw_addr` is basically the same thing as a common
`struct ipaddr` but it lacks the address family which is needed in some
cases.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd/bgp_attr_evpn.c')
| -rw-r--r-- | bgpd/bgp_attr_evpn.c | 12 | 
1 files changed, 0 insertions, 12 deletions
diff --git a/bgpd/bgp_attr_evpn.c b/bgpd/bgp_attr_evpn.c index 0e341a8c6b..add999bd44 100644 --- a/bgpd/bgp_attr_evpn.c +++ b/bgpd/bgp_attr_evpn.c @@ -304,15 +304,3 @@ extern int bgp_build_evpn_prefix(int evpn_type, uint32_t eth_tag,  		return -1;  	return 0;  } - -extern bool is_zero_gw_ip(const union gw_addr *gw_ip, const afi_t afi) -{ -	if (afi == AF_INET6 && IN6_IS_ADDR_UNSPECIFIED(&gw_ip->ipv6)) -		return true; - -	if (afi == AF_INET && gw_ip->ipv4.s_addr == INADDR_ANY) -		return true; - -	return false; -} -  | 
