diff options
author | jim-p <jimp@pfsense.org> | 2010-05-13 15:43:05 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-05-13 15:46:07 -0400 |
commit | fb586a1633ba53584dab6208a64f96798be4869d (patch) | |
tree | be50843edc051ac4617a45d476300b3439d37c9f /etc/inc/filter.inc | |
parent | ef021ff780bfae0d0188a051a0d284a33c7340c7 (diff) | |
download | pfsense-fb586a1633ba53584dab6208a64f96798be4869d.zip pfsense-fb586a1633ba53584dab6208a64f96798be4869d.tar.gz |
Add a GUI field to let the user configure the maxium table entries size. Resolves #588
NOTE: Actual tables, not states.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index cab17d1..0b1e663 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -240,6 +240,11 @@ function filter_configure_sync() { $rules .= "set limit states {$max_states}\n"; } + if($config['system']['maximumtableentries'] <> "" && is_numeric($config['system']['maximumtableentries'])) { + /* User defined maximum table entries in Advanced menu. */ + $rules .= "set limit table-entries {$config['system']['maximumtableentries']}\n"; + } + //$rules .= discover_pkg_rules("pfearly"); // Configure flowtable support if enabled. |