diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-06 05:51:03 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-06 05:51:03 +0000 |
commit | 55a1c5c373be3969e1bd84bde007c12b11f0c24e (patch) | |
tree | ada81211478310ea24d7da323a292e83250e936c /packages | |
parent | b75c57f8dcffb49b19f3a47dd005d1edf5d88f85 (diff) | |
download | pfsense-packages-55a1c5c373be3969e1bd84bde007c12b11f0c24e.tar.gz pfsense-packages-55a1c5c373be3969e1bd84bde007c12b11f0c24e.tar.bz2 pfsense-packages-55a1c5c373be3969e1bd84bde007c12b11f0c24e.zip |
*** empty log message ***
Diffstat (limited to 'packages')
-rw-r--r-- | packages/netio.xml | 48 | ||||
-rw-r--r-- | packages/netioserver.xml | 36 |
2 files changed, 84 insertions, 0 deletions
diff --git a/packages/netio.xml b/packages/netio.xml new file mode 100644 index 00000000..259f633d --- /dev/null +++ b/packages/netio.xml @@ -0,0 +1,48 @@ +<packagegui> + <name>netio</name> + <version>1.14</version> + <title>netio: Client</title> + <donotsave>true</donotsave> + <preoutput>yes</preoutput> + <menu> + <name>netio</name> + <tooltiptext>Run netio in client or server mode.</tooltiptext> + <section>Diagnostics</section> + <configfile>netio.xml</configfile> + </menu> + <tabs> + <tab> + <text>Client</text> + <url>/pkg_edit.php?xml=netio.xml</url> + <active/> + </tab> + <tab> + <text>Server</text> + <url>/pkg_edit.php?xml=netioserver.xml</url> + </tab> + </tabs> + <additional_files_needed> + <item>http://www.pfsense.com/packages/config/netioserver.xml</item> + </additional_files_needed> + <fields> + <field> + <fielddescr>Server</fielddescr> + <fieldname>hostname</fieldname> + <description>Enter the IP address or hostname that iperf will connect to.</description> + <type>input</type> + </field> + <field> + <fielddescr>Port</fielddescr> + <fieldname>port</fieldname> + <description>Enter the port that iperf will connect to. (default 5001)</description> + <type>input</type> + </field> + </fields> + <custom_add_php_command> + $netio_options = ""; + if($_POST['port'] != "") $netio_options .= " -p {$_POST['port']}"; + $netio_options .= $_POST['hostname']; + system("/usr/local/bin/netio" . $netio_options); + </custom_add_php_command> +</packagegui> + diff --git a/packages/netioserver.xml b/packages/netioserver.xml new file mode 100644 index 00000000..24716bdb --- /dev/null +++ b/packages/netioserver.xml @@ -0,0 +1,36 @@ +<packagegui> + <name>netioserver</name> + <version>1.14</version> + <title>netio: Server</title> + <donotsave>true</donotsave> + <preoutput>yes</preoutput> + <menu> + <name>netio</name> + <tooltiptext>Run netio in client or server mode.</tooltiptext> + <section>Diagnostics</section> + <configfile>netio.xml</configfile> + </menu> + <tabs> + <tab> + <text>Client</text> + <url>/pkg_edit.php?xml=netio.xml</url> + </tab> + <tab> + <text>Server</text> + <url>/pkg_edit.php?xml=netioserver.xml</url> + <active/> + </tab> + </tabs> + <field> + <fielddescr>Port</fielddescr> + <fieldname>port</fieldname> + <description>Enter the port that iperf will connect to. (default 5001)</description> + <type>input</type> + </field> + </fields> + <custom_add_php_command> + if($_POST['port'] != "") $netioserver_options = " -p {$_POST['port']}"; + system("/usr/local/bin/netio -s" . $netioserver_options); + </custom_add_php_command> +</packagegui> + |