patch-2.4.26 linux-2.4.26/net/core/dev.c

Next file: linux-2.4.26/net/core/sock.c
Previous file: linux-2.4.26/net/bluetooth/rfcomm/tty.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/net/core/dev.c linux-2.4.26/net/core/dev.c
@@ -1462,7 +1462,7 @@
 {
 	struct packet_type *ptype, *pt_prev;
 	int ret = NET_RX_DROP;
-	unsigned short type = skb->protocol;
+	unsigned short type;
 
 	if (skb->stamp.tv_sec == 0)
 		do_gettimeofday(&skb->stamp);
@@ -1507,6 +1507,7 @@
 	}
 #endif
 
+	type = skb->protocol;
 	for (ptype=ptype_base[ntohs(type)&15];ptype;ptype=ptype->next) {
 		if (ptype->type == type &&
 		    (!ptype->dev || ptype->dev == skb->dev)) {

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