mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 15:43:55 +00:00
zebra: don't get rmac in remote macip add
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
parent
c581d8b0f4
commit
b80320d778
@ -4430,7 +4430,6 @@ int zebra_vxlan_remote_macip_add(struct zserv *client, u_short length,
|
|||||||
struct stream *s;
|
struct stream *s;
|
||||||
vni_t vni;
|
vni_t vni;
|
||||||
struct ethaddr macaddr;
|
struct ethaddr macaddr;
|
||||||
struct ethaddr rmac;
|
|
||||||
struct ipaddr ip;
|
struct ipaddr ip;
|
||||||
struct in_addr vtep_ip;
|
struct in_addr vtep_ip;
|
||||||
zebra_vni_t *zvni;
|
zebra_vni_t *zvni;
|
||||||
@ -4441,13 +4440,11 @@ int zebra_vxlan_remote_macip_add(struct zserv *client, u_short length,
|
|||||||
int update_mac = 0, update_neigh = 0;
|
int update_mac = 0, update_neigh = 0;
|
||||||
char buf[ETHER_ADDR_STRLEN];
|
char buf[ETHER_ADDR_STRLEN];
|
||||||
char buf1[INET6_ADDRSTRLEN];
|
char buf1[INET6_ADDRSTRLEN];
|
||||||
char buf2[ETHER_ADDR_STRLEN];
|
|
||||||
u_char sticky;
|
u_char sticky;
|
||||||
struct interface *ifp = NULL;
|
struct interface *ifp = NULL;
|
||||||
struct zebra_if *zif = NULL;
|
struct zebra_if *zif = NULL;
|
||||||
|
|
||||||
memset(&macaddr, 0, sizeof(struct ethaddr));
|
memset(&macaddr, 0, sizeof(struct ethaddr));
|
||||||
memset(&rmac, 0, sizeof(struct ethaddr));
|
|
||||||
memset(&ip, 0, sizeof(struct ipaddr));
|
memset(&ip, 0, sizeof(struct ipaddr));
|
||||||
memset(&vtep_ip, 0, sizeof(struct in_addr));
|
memset(&vtep_ip, 0, sizeof(struct in_addr));
|
||||||
|
|
||||||
@ -4484,18 +4481,13 @@ int zebra_vxlan_remote_macip_add(struct zserv *client, u_short length,
|
|||||||
STREAM_GETC(s, sticky);
|
STREAM_GETC(s, sticky);
|
||||||
l++;
|
l++;
|
||||||
|
|
||||||
/* Get router mac */
|
|
||||||
stream_get(&rmac.octet, s, ETH_ALEN);
|
|
||||||
l += ETH_ALEN;
|
|
||||||
|
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"Recv MACIP Add %sMAC %s IP %s VNI %u Remote VTEP %s RMAC %s from %s",
|
"Recv MACIP Add %sMAC %s IP %s VNI %u Remote VTEP %s from %s",
|
||||||
sticky ? "sticky " : "",
|
sticky ? "sticky " : "",
|
||||||
prefix_mac2str(&macaddr, buf, sizeof(buf)),
|
prefix_mac2str(&macaddr, buf, sizeof(buf)),
|
||||||
ipaddr2str(&ip, buf1, sizeof(buf1)), vni,
|
ipaddr2str(&ip, buf1, sizeof(buf1)), vni,
|
||||||
inet_ntoa(vtep_ip),
|
inet_ntoa(vtep_ip),
|
||||||
prefix_mac2str(&rmac, buf2, sizeof(buf2)),
|
|
||||||
zebra_route_string(client->proto));
|
zebra_route_string(client->proto));
|
||||||
|
|
||||||
/* Locate VNI hash entry - expected to exist. */
|
/* Locate VNI hash entry - expected to exist. */
|
||||||
|
Loading…
Reference in New Issue
Block a user