Subject: Re: CVS commit: src/sys (netinet/tcp_usrreq.c)
To: None <source-changes@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: source-changes
Date: 03/10/2005 03:39:41
Andrew Brown <atatat@netbsd.org> typed:
: Committed By:	atatat
: Date:		Wed Mar  9 05:07:19 UTC 2005
: Modified Files:
: 	src/sys/kern: uipc_domain.c
: 	src/sys/netinet: in_var.h raw_ip.c tcp_usrreq.c udp_usrreq.c
: 	src/sys/netinet6: raw_ip6.c udp6_usrreq.c
: 	src/sys/sys: socket.h

: cvs rdiff -r1.96 -r1.97 src/sys/netinet/tcp_usrreq.c

At least this file needs some cleanup (I thought I posted this message but
can't find it so maybe it's a duplicate).

Regards,
Geoff

--- sys/netinet/tcp_usrreq.c.org	2005-03-09 18:23:56.000000000 +1100
+++ sys/netinet/tcp_usrreq.c	2005-03-10 14:31:21.000000000 +1100
@@ -1232,12 +1232,14 @@
 	pf2 = (oldp == NULL) ? 0 : pf;
 
 	CIRCLEQ_FOREACH(inph, &pcbtbl->inpt_queue, inph_queue) {
+#ifdef INET
 		inp = (struct inpcb *)inph;
-		in6p = (struct in6pcb *)inph;
-
 		if (inp->inp_af != pf)
 			continue;
-
+#endif
+#ifdef INET6
+		in6p = (struct in6pcb *)inph;
+#endif
 		memset(&pcb, 0, sizeof(pcb));
 
 		pcb.ki_family = pf;