1/*- 2 * Copyright (c) 2002 Luigi Rizzo, Universita` di Pisa 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c 314667 2017-03-04 13:03:31Z avg $"); |
28 29#define DEB(x) 30#define DDB(x) x 31 32/* 33 * Dynamic rule support for ipfw 34 */ 35 --- 1295 unchanged lines hidden (view full) --- 1331 1332 V_ipfw_dyn_rule_zone = uma_zcreate("IPFW dynamic rule", 1333 sizeof(ipfw_dyn_rule), NULL, NULL, NULL, NULL, 1334 UMA_ALIGN_PTR, 0); 1335 1336 /* Enforce limit on dynamic rules */ 1337 uma_zone_set_max(V_ipfw_dyn_rule_zone, V_dyn_max); 1338 |
1339 callout_init(&V_ipfw_timeout, 1); |
1340 1341 /* 1342 * This can potentially be done on first dynamic rule 1343 * being added to chain. 1344 */ 1345 resize_dynamic_table(chain, V_curr_dyn_buckets); 1346} 1347 --- 133 unchanged lines hidden --- |