Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Apr 2012 04:41:06 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233917 - head/sys/contrib/pf/net
Message-ID:  <201204050441.q354f62M040464@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204050441.q354f62M040464>