[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C2A13A0.20200@hp.com>
Date: Tue, 29 Jun 2010 11:39:12 -0400
From: Brian Haley <brian.haley@...com>
To: Flavio Leitner <fleitner@...hat.com>
CC: bonding-devel@...ts.sourceforge.net,
Jay Vosburgh <fubar@...ibm.com>, netdev@...r.kernel.org,
Andy Gospodarek <gospo@...hat.com>
Subject: Re: [PATCH] bonding: check if clients MAC addr has changed
On 06/29/2010 10:41 AM, Flavio Leitner wrote:
> diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
> index 40fdc41..67154bb 100644
> --- a/drivers/net/bonding/bond_alb.c
> +++ b/drivers/net/bonding/bond_alb.c
> @@ -340,7 +340,8 @@ static void rlb_update_entry_from_arp(struct bonding *bond, struct arp_pkt *arp)
>
> if ((client_info->assigned) &&
> (client_info->ip_src == arp->ip_dst) &&
> - (client_info->ip_dst == arp->ip_src)) {
> + (client_info->ip_dst == arp->ip_src) &&
> + (memcmp(client_info->mac_dst, arp->mac_src, ETH_ALEN))) {
> /* update the clients MAC address */
> memcpy(client_info->mac_dst, arp->mac_src, ETH_ALEN);
> client_info->ntt = 1;
compare_ether_addr_64bits() ?
-Brian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists