public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 1/2 DECnet fix SDF_WILD
@ 2004-01-26 11:31 Patrick Caulfield
  2004-01-30 20:43 ` David S. Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Caulfield @ 2004-01-26 11:31 UTC (permalink / raw)
  To: davem, linux-kernel; +Cc: Steve Whitehouse

This patch fixes the operation of SDF_WILD sockets on Linux 2.6.0/1
(they don't currently work at all).

--- net/decnet/af_decnet.c.orig 2003-12-08 11:27:59.000000000 +0000
+++ net/decnet/af_decnet.c      2003-12-08 11:28:34.000000000 +0000
@@ -163,7 +163,7 @@
        struct dn_scp *scp = DN_SK(sk);

        if (scp->addr.sdn_flags & SDF_WILD)
-               return hlist_empty(&dn_wild_sk) ? NULL : &dn_wild_sk;
+               return hlist_empty(&dn_wild_sk) ? &dn_wild_sk : NULL;

        return &dn_sk_hash[scp->addrloc & DN_SK_HASH_MASK];
 }


patrick


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-01  1:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 11:31 [PATCH] 1/2 DECnet fix SDF_WILD Patrick Caulfield
2004-01-30 20:43 ` David S. Miller
2004-01-31 11:41   ` Patrick Caulfield
2004-02-01  1:49     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox