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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to