patch-2.3.99-pre7 linux/net/ipv4/raw.c

Next file: linux/net/ipv4/tcp_ipv4.c
Previous file: linux/net/ipv4/netfilter/iptable_filter.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -5,7 +5,7 @@
  *
  *		RAW - implementation of IP "raw" sockets.
  *
- * Version:	$Id: raw.c,v 1.49 2000/04/25 04:13:34 davem Exp $
+ * Version:	$Id: raw.c,v 1.50 2000/05/03 06:37:06 davem Exp $
  *
  * Authors:	Ross Biro, <[email protected]>
  *		Fred N. van Kempen, <[email protected]>
@@ -591,7 +591,7 @@
 	src   = sp->rcv_saddr;
 	destp = 0;
 	srcp  = sp->num;
-	timer_active = (sp->timer.prev != NULL) ? 2 : 0;
+	timer_active = (timer_pending(&sp->timer)) ? 2 : 0;
 	timer_expires = (timer_active == 2 ? sp->timer.expires : jiffies);
 	sprintf(tmpbuf, "%4d: %08X:%04X %08X:%04X"
 		" %02X %08X:%08X %02X:%08lX %08X %5d %8d %ld %d %p",

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])