Commit 476d7328 authored by Amir Noam's avatar Amir Noam Committed by Stephen Hemminger

[bonding 2.6] fix ARP monitoring bug

parent c90482ab
...@@ -443,7 +443,7 @@ struct bond_parm_tbl { ...@@ -443,7 +443,7 @@ struct bond_parm_tbl {
static int arp_interval = BOND_LINK_ARP_INTERV; static int arp_interval = BOND_LINK_ARP_INTERV;
static char *arp_ip_target[MAX_ARP_IP_TARGETS] = { NULL, }; static char *arp_ip_target[MAX_ARP_IP_TARGETS] = { NULL, };
static unsigned long arp_target[MAX_ARP_IP_TARGETS] = { 0, } ; static u32 arp_target[MAX_ARP_IP_TARGETS] = { 0, } ;
static int arp_ip_count = 0; static int arp_ip_count = 0;
static u32 my_ip = 0; static u32 my_ip = 0;
char *arp_target_hw_addr = NULL; char *arp_target_hw_addr = NULL;
...@@ -3811,7 +3811,7 @@ static int __init bonding_init(void) ...@@ -3811,7 +3811,7 @@ static int __init bonding_init(void)
arp_interval = 0; arp_interval = 0;
} else { } else {
u32 ip = in_aton(arp_ip_target[arp_ip_count]); u32 ip = in_aton(arp_ip_target[arp_ip_count]);
*(u32 *)(arp_ip_target[arp_ip_count]) = ip; arp_target[arp_ip_count] = ip;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment