| To: | <linux-kernel@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19 |
| From: | jamal <hadi@xxxxxxxxxx> |
| Date: | Wed, 5 Sep 2001 18:08:18 -0400 (EDT) |
| Cc: | <netdev@xxxxxxxxxxx>, Andi Kleen <ak@xxxxxx>, <kuznet@xxxxxxxxxxxxx> |
| Sender: | owner-netdev@xxxxxxxxxxx |
Andi, Alexey,
Whats wrong with this patch (just a thought, not tested or even compiled)?
---------------------------------------
--- devinet.c 2001/09/04 19:18:51 1.1
+++ devinet.c 2001/09/04 19:31:13
@@ -530,7 +530,7 @@
if ((in_dev=__in_dev_get(dev)) != NULL) {
for (ifap=&in_dev->ifa_list; (ifa=*ifap) != NULL;
ifap=&ifa->ifa_next)
- if (strcmp(ifr.ifr_name, ifa->ifa_label) == 0)
+ if ((strcmp(ifr.ifr_name, ifa->ifa_label) == 0) ||
(sin->sin_addr.s_addr == ifa->ifa_address))
break;
}
--------------------------------
cheers,
jamal
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: IPv6 routes and RTPROT_*, kuznet |
|---|---|
| Next by Date: | [PATCH] to make netdev_fc_lock static, David C. Hansen |
| Previous by Thread: | IPv6 routes and RTPROT_*, Antti Tuominen |
| Next by Thread: | Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19, kuznet |
| Indexes: | [Date] [Thread] [Top] [All Lists] |