| To: | bonding-devel@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 3/10] [bonding 2.6] fix ARP monitoring bug |
| From: | Amir Noam <amir.noam@xxxxxxxxx> |
| Date: | Thu, 4 Sep 2003 20:44:25 +0300 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | KMail/1.4.3 |
diff -Nuarp a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
--- a/drivers/net/bonding/bond_main.c Thu Sep 4 20:17:57 2003
+++ b/drivers/net/bonding/bond_main.c Thu Sep 4 20:17:58 2003
@@ -443,7 +443,7 @@ struct bond_parm_tbl {
static int arp_interval = BOND_LINK_ARP_INTERV;
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 u32 my_ip = 0;
char *arp_target_hw_addr = NULL;
@@ -3811,7 +3811,7 @@ static int __init bonding_init(void)
arp_interval = 0;
} else {
u32 ip = in_aton(arp_ip_target[arp_ip_count]);
- *(u32 *)(arp_ip_target[arp_ip_count]) = ip;
+ arp_target[arp_ip_count] = ip;
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 0/10] [bonding 2.6] port 2.4 bug fixes to 2.6, Amir Noam |
|---|---|
| Next by Date: | [PATCH 4/10] [bonding 2.6] fix kernel panic when optional feature used, Amir Noam |
| Previous by Thread: | [PATCH 0/10] [bonding 2.6] port 2.4 bug fixes to 2.6, Amir Noam |
| Next by Thread: | [PATCH 4/10] [bonding 2.6] fix kernel panic when optional feature used, Amir Noam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |