[Linux-decnet-user] State of DECnet in 2.6
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Patrick C. <pa...@ty...> - 2003-12-17 13:10:38
|
This is just a test message really but I thought I'd put some (slightly) useful
content in it to make it less annoying :-)
DECnet in Linux 2.6 works fine apart from three known problems:
1. SDF_WILD sockets don't work. (ie dnetd won't start) The patch below fixes
this:
--- 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];
}
2. cat /proc/net/decnet_cache will crash the machine. This patch fixes that
problem:
--- net/decnet/dn_route.c 24 Nov 2003 03:16:28 -0000 1.3
+++ net/decnet/dn_route.c 17 Dec 2003 09:54:37 -0000
@@ -1720,7 +1720,8 @@
static void dn_rt_cache_seq_stop(struct seq_file *seq, void *v)
{
- rcu_read_unlock();
+ if (v)
+ rcu_read_unlock();
}
static int dn_rt_cache_seq_show(struct seq_file *seq, void *v)
3. Big-endian machines are broke.
I'm looking into the last one and will, with luck, get something done over
Christmas. With the two patches it should be fully functional on Intel and Alpha
platforms.
Patrick
|