linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19
@ 2001-09-05 22:08 jamal
  2001-09-06 15:11 ` kuznet
  2001-09-06 20:22 ` Matthias Andree
  0 siblings, 2 replies; 22+ messages in thread
From: jamal @ 2001-09-05 22:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: netdev, Andi Kleen, kuznet


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



^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <20010905170037.A6473@emma1.emma.line.org.suse.lists.linux.kernel>]
[parent not found: <fa.k8o5i6v.4i8gis@ifi.uio.no>]
[parent not found: <20010905170037.A6473@emma1.emma.line.org>]

end of thread, other threads:[~2001-09-09  0:37 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-05 22:08 ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19 jamal
2001-09-06 15:11 ` kuznet
2001-09-06 20:22 ` Matthias Andree
     [not found] <20010905170037.A6473@emma1.emma.line.org.suse.lists.linux.kernel>
     [not found] ` <20010905152738.C5912BC06D@spike.porcupine.org.suse.lists.linux.kernel>
     [not found]   ` <20010905182033.D3926@emma1.emma.line.org.suse.lists.linux.kernel>
2001-09-05 19:26     ` Andi Kleen
2001-09-06 13:11       ` Matthias Andree
2001-09-06 13:35       ` Andrey Savochkin
2001-09-06 14:04         ` Wietse Venema
2001-09-06 14:21           ` Matthias Andree
2001-09-06 14:51           ` Alan Cox
2001-09-06 14:17         ` Matthias Andree
2001-09-08 12:42     ` Kai Henningsen
2001-09-09  0:37       ` Matthias Andree
     [not found] <fa.k8o5i6v.4i8gis@ifi.uio.no>
     [not found] ` <fa.fuk70gv.mk6m09@ifi.uio.no>
2001-09-06 21:19   ` Sam Varshavchik
     [not found] <20010905170037.A6473@emma1.emma.line.org>
     [not found] ` <20010905152738.C5912BC06D@spike.porcupine.org>
2001-09-05 16:20   ` Matthias Andree
2001-09-05 18:25     ` Christopher Friesen
2001-09-05 18:34       ` Alan Cox
2001-09-05 21:23         ` Wietse Venema
2001-09-06 18:36           ` Andi Kleen
2001-09-06 18:51             ` Wietse Venema
2001-09-06 19:05               ` Andi Kleen
2001-09-07  9:30               ` Henning P. Schmiedehausen
2001-09-07 11:15                 ` Matthias Andree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).