patch-2.3.51 linux/net/decnet/dn_nsp_in.c

Next file: linux/net/decnet/dn_nsp_out.c
Previous file: linux/net/decnet/af_decnet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/net/decnet/dn_nsp_in.c linux/net/decnet/dn_nsp_in.c
@@ -70,7 +70,6 @@
 #include <net/dn_nsp.h>
 #include <net/dn_dev.h>
 #include <net/dn_route.h>
-#include <net/dn_raw.h>
 
 
 /*
@@ -320,7 +319,7 @@
 	struct dn_scp *scp = &sk->protinfo.dn;
 	unsigned short reason;
 
-	if (skb->len < 2)
+	if (skb->len != 2)
 		goto out;
 
 	reason = dn_ntohs(*(__u16 *)skb->data);
@@ -551,10 +550,6 @@
 
 	if (decnet_debug_level & 2)
 		printk(KERN_DEBUG "dn_nsp_rx: Message type 0x%02x\n", (int)cb->nsp_flags);
-
-#ifdef CONFIG_DECNET_RAW
-	dn_raw_rx_nsp(skb);
-#endif /* CONFIG_DECNET_RAW */
 
 	if (skb->len < 2) 
 		goto free_out;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)