svn commit: r233917 - head/sys/contrib/pf/net

Andrey V. Elsukov ae at FreeBSD.org
Thu Apr 5 04:41:07 UTC 2012


Author: ae
Date: Thu Apr  5 04:41:06 2012
New Revision: 233917
URL: http://svn.freebsd.org/changeset/base/233917

Log:
  Fix VIMAGE build.

Modified:
  head/sys/contrib/pf/net/if_pfsync.c

Modified: head/sys/contrib/pf/net/if_pfsync.c
==============================================================================
--- head/sys/contrib/pf/net/if_pfsync.c	Thu Apr  5 04:32:57 2012	(r233916)
+++ head/sys/contrib/pf/net/if_pfsync.c	Thu Apr  5 04:41:06 2012	(r233917)
@@ -794,7 +794,11 @@ pfsync_state_import(struct pfsync_state 
 
 		timeout = r->timeout[sp->timeout];
 		if (!timeout)
+#ifdef __FreeBSD__
+			timeout = V_pf_default_rule.timeout[sp->timeout];
+#else
 			timeout = pf_default_rule.timeout[sp->timeout];
+#endif
 
 		/* sp->expire may have been adaptively scaled by export. */
 		st->expire -= timeout - ntohl(sp->expire);


More information about the svn-src-head mailing list