]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: don't get rmac in remote macip add
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Mon, 9 Oct 2017 03:49:16 +0000 (20:49 -0700)
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Thu, 14 Dec 2017 18:57:05 +0000 (10:57 -0800)
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
zebra/zebra_vxlan.c

index cecd8b981bb5e7468d58ebf8589e147ad63d0949..ab4e5f64bab6142ad9c84c1c54d64f66a34d3cda 100644 (file)
@@ -4430,7 +4430,6 @@ int zebra_vxlan_remote_macip_add(struct zserv *client, u_short length,
        struct stream *s;
        vni_t vni;
        struct ethaddr macaddr;
-       struct ethaddr rmac;
        struct ipaddr ip;
        struct in_addr vtep_ip;
        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;
        char buf[ETHER_ADDR_STRLEN];
        char buf1[INET6_ADDRSTRLEN];
-       char buf2[ETHER_ADDR_STRLEN];
        u_char sticky;
        struct interface *ifp = NULL;
        struct zebra_if *zif = NULL;
 
        memset(&macaddr, 0, sizeof(struct ethaddr));
-       memset(&rmac, 0, sizeof(struct ethaddr));
        memset(&ip, 0, sizeof(struct ipaddr));
        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);
                l++;
 
-               /* Get router mac */
-               stream_get(&rmac.octet, s, ETH_ALEN);
-               l += ETH_ALEN;
-
                if (IS_ZEBRA_DEBUG_VXLAN)
                        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 " : "",
                                prefix_mac2str(&macaddr, buf, sizeof(buf)),
                                ipaddr2str(&ip, buf1, sizeof(buf1)), vni,
                                inet_ntoa(vtep_ip),
-                               prefix_mac2str(&rmac, buf2, sizeof(buf2)),
                                zebra_route_string(client->proto));
 
                /* Locate VNI hash entry - expected to exist. */