static int update_evpn_route_entry(struct bgp *bgp, struct bgpevpn *vpn,
afi_t afi, safi_t safi, struct bgp_node *rn,
struct attr *attr, int add,
- struct bgp_info **ri, u_char flags,
+ struct bgp_info **ri, uint8_t flags,
uint32_t seq)
{
struct bgp_info *tmp_ri;
* using L3 VNI for type-2 routes also.
*/
if ((is_evpn_prefix_ipaddr_v4(evp) ||
- !IN6_IS_ADDR_LINKLOCAL(&evp->prefix.macip_addr.ip.ipaddr_v6)) &&
+ !IN6_IS_ADDR_LINKLOCAL(
+ &evp->prefix.macip_addr.ip.ipaddr_v6)) &&
CHECK_FLAG(vpn->flags, VNI_FLAG_USE_TWO_LABELS) &&
bgpevpn_get_l3vni(vpn))
add_l3_ecomm = 1;
ETH_ALEN) != 0) {
old_zmac = zvni_mac_lookup(zvni, &n->emac);
if (old_zmac) {
- old_mac_seq = CHECK_FLAG(old_zmac->flags,
- ZEBRA_MAC_REMOTE) ?
+ old_mac_seq = CHECK_FLAG(
+ old_zmac->flags,
+ ZEBRA_MAC_REMOTE) ?
old_zmac->rem_seq :
old_zmac->loc_seq;
neigh_mac_change = upd_mac_seq = true;
zmac->flags, zmac->loc_seq))
return -1;
zvni_process_neigh_on_local_mac_change(zvni, zmac, 1);
- return 0;
- }
+ return 0;
+ }
ZEBRA_NEIGH_SET_ACTIVE(n);
n->loc_seq = zmac->loc_seq;
/* Process a remote MACIP add from BGP. */
static void process_remote_macip_add(vni_t vni,
struct ethaddr *macaddr,
- u_short ipa_len,
+ uint16_t ipa_len,
struct ipaddr *ipaddr,
- u_char flags,
+ uint8_t flags,
uint32_t seq,
struct in_addr vtep_ip)
{
struct interface *ifp = NULL;
struct zebra_if *zif = NULL;
uint32_t tmp_seq;
- u_char sticky = 0;
+ uint8_t sticky = 0;
u_char remote_gw = 0;
/* Locate VNI hash entry - expected to exist. */
/* Process a remote MACIP delete from BGP. */
static void process_remote_macip_del(vni_t vni,
struct ethaddr *macaddr,
- u_short ipa_len,
+ uint16_t ipa_len,
struct ipaddr *ipaddr,
struct in_addr vtep_ip)
{
json, JSON_C_TO_STRING_PRETTY));
json_object_free(json);
}
- return;
}
/*
zl3vni_rmac2str(zl3vni, buf, sizeof(buf)));
} else {
json_object *json_vrf = NULL;
+
json_vrf = json_object_new_object();
json_object_string_add(json_vrf, "vrf", zvrf_name(zvrf));
json_object_int_add(json_vrf, "vni", zl3vni->vni);
struct ethaddr macaddr;
struct ipaddr ip;
struct in_addr vtep_ip;
- unsigned short l = 0, ipa_len;
+ uint16_t l = 0, ipa_len;
char buf[ETHER_ADDR_STRLEN];
char buf1[INET6_ADDRSTRLEN];
struct ethaddr macaddr;
struct ipaddr ip;
struct in_addr vtep_ip;
- unsigned short l = 0, ipa_len;
+ uint16_t l = 0, ipa_len;
uint8_t flags = 0;
uint32_t seq;
char buf[ETHER_ADDR_STRLEN];