patch-2.3.99-pre7 linux/net/ipv6/udp.c

Next file: linux/net/ipx/af_spx.c
Previous file: linux/net/ipv6/tcp_ipv6.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/net/ipv6/udp.c linux/net/ipv6/udp.c
@@ -7,7 +7,7 @@
  *
  *	Based on linux/ipv4/udp.c
  *
- *	$Id: udp.c,v 1.52 2000/04/25 04:13:34 davem Exp $
+ *	$Id: udp.c,v 1.53 2000/05/03 06:37:07 davem Exp $
  *
  *	Fixes:
  *	Hideaki YOSHIFUJI	:	sin6_scope_id support
@@ -901,15 +901,15 @@
 {
 	struct in6_addr *dest, *src;
 	__u16 destp, srcp;
-	int timer_active;
+	int sock_timer_active;
 	unsigned long timer_expires;
 
 	dest  = &sp->net_pinfo.af_inet6.daddr;
 	src   = &sp->net_pinfo.af_inet6.rcv_saddr;
 	destp = ntohs(sp->dport);
 	srcp  = ntohs(sp->sport);
-	timer_active = (sp->timer.prev != NULL) ? 2 : 0;
-	timer_expires = (timer_active == 2 ? sp->timer.expires : jiffies);
+	sock_timer_active = timer_pending(&sp->timer) ? 2 : 0;
+	timer_expires = (sock_timer_active == 2 ? sp->timer.expires : jiffies);
 	sprintf(tmpbuf,
 		"%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X "
 		"%02X %08X:%08X %02X:%08lX %08X %5d %8d %ld %d %p",
@@ -920,7 +920,7 @@
 		dest->s6_addr32[2], dest->s6_addr32[3], destp,
 		sp->state, 
 		atomic_read(&sp->wmem_alloc), atomic_read(&sp->rmem_alloc),
-		timer_active, timer_expires-jiffies, 0,
+		sock_timer_active, timer_expires-jiffies, 0,
 		sp->socket->inode->i_uid, 0,
 		sp->socket ? sp->socket->inode->i_ino : 0,
 		atomic_read(&sp->refcnt), sp);

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