diff options
author | Andrew Lowther <alowther@gmail.com> | 2012-04-25 17:51:59 -0400 |
---|---|---|
committer | Andrew Lowther <alowther@gmail.com> | 2012-04-25 17:51:59 -0400 |
commit | b30e3be44ff4b8dcf92d7ae91ae1bb9f8887c604 (patch) | |
tree | 97b5a327f8e64e1f69fd78d9a151b2c1d707eccb /usr/local/pkg | |
parent | 655e4d414bc771968b7440ecb0bd9051b0e91e6c (diff) | |
download | pfsense-b30e3be44ff4b8dcf92d7ae91ae1bb9f8887c604.zip pfsense-b30e3be44ff4b8dcf92d7ae91ae1bb9f8887c604.tar.gz |
options for auto-summary/supernet
Diffstat (limited to 'usr/local/pkg')
-rw-r--r-- | usr/local/pkg/routed.inc | 8 | ||||
-rw-r--r-- | usr/local/pkg/routed.xml | 14 |
2 files changed, 21 insertions, 1 deletions
diff --git a/usr/local/pkg/routed.inc b/usr/local/pkg/routed.inc index ec730d5..cb349cd 100644 --- a/usr/local/pkg/routed.inc +++ b/usr/local/pkg/routed.inc @@ -78,6 +78,14 @@ function setup_etc_gateways($iface="", $mode="") { if ($passwd != "") { $ret .= "passwd={$passwd} "; } + $add_no_ag = $config['installedpackages']['routed']['config'][0]['enable_no_ag']; + $add_no_super_ag = $config['installedpackages']['routed']['config'][0]['enable_no_super_ag']; + if($add_no_ag == "on") { + $ret .= "no_ag "; + } + if($add_no_super_ag == "on") { + $ret .= "no_super_ag "; + } } break; case "disable": diff --git a/usr/local/pkg/routed.xml b/usr/local/pkg/routed.xml index 274c3d6..4c5137f 100644 --- a/usr/local/pkg/routed.xml +++ b/usr/local/pkg/routed.xml @@ -64,7 +64,7 @@ <fieldname>enable</fieldname> <description>Enables the Routing Information Protocol daemon</description> <type>checkbox</type> - <enablefields>iface_array[],ripversion,passwd</enablefields> + <enablefields>iface_array[],ripversion,passwd,enable_no_ag,enable_no_super_ag</enablefields> </field> <field> <fielddescr>Interfaces</fielddescr> @@ -96,6 +96,18 @@ </description> <type>input</type> </field> + <field> + <fielddescr>no_ag</fielddescr> + <fieldname>enable_no_ag</fieldname> + <description>turns off aggregation of subnets in RIPv1 and RIPv2 responses.</description> + <type>checkbox</type> + </field> + <field> + <fielddescr>no_super_ag</fielddescr> + <fieldname>enable_no_super_ag</fieldname> + <description>turns off aggregation of networks into supernets in RIPv2 responses.</description> + <type>checkbox</type> + </field> </fields> <aftersaveredirect>pkg_edit.php?xml=routed.xml&id=0</aftersaveredirect> <custom_php_command_before_form> |