PERFORCE change 123031 for review

Marko Zec zec at FreeBSD.org
Fri Jul 6 19:19:11 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123031

Change 123031 by zec at zec_tpx32 on 2007/07/06 19:18:48

	Don't compile in a few INIT_VNET_INET macros when the
	variables it creates are not used.

Affected files ...

.. //depot/projects/vimage/src/sys/netinet/tcp_timewait.c#7 edit

Differences ...

==== //depot/projects/vimage/src/sys/netinet/tcp_timewait.c#7 (text+ko) ====

@@ -191,7 +191,9 @@
 void
 tcp_twstart(struct tcpcb *tp)
 {
+#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
 	INIT_VNET_INET(tp->t_vnet);
+#endif
 	struct tcptw *tw;
 	struct inpcb *inp = tp->t_inpcb;
 	int acknow;
@@ -330,7 +332,9 @@
 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
     struct mbuf *m, int tlen)
 {
+#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
 	INIT_VNET_INET(curvnet);
+#endif
 	struct tcptw *tw;
 	int thflags;
 	tcp_seq seq;


More information about the p4-projects mailing list