Commit 5466e008 authored by Franco Fichtner's avatar Franco Fichtner

firewall: mark deprecated ICMP types; closes #912

Taken from: http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

(cherry picked from commit aa21adfe)
parent 4c9bfe06
...@@ -501,22 +501,22 @@ $( document ).ready(function() { ...@@ -501,22 +501,22 @@ $( document ).ready(function() {
<?php <?php
$icmptypes = array( $icmptypes = array(
"" => gettext("any"), "" => gettext("any"),
"echoreq" => gettext("Echo request"), "echoreq" => gettext("Echo Request"),
"echorep" => gettext("Echo reply"), "echorep" => gettext("Echo Reply"),
"unreach" => gettext("Destination unreachable"), "unreach" => gettext("Destination Unreachable"),
"squench" => gettext("Source quench"), "squench" => gettext("Source Quench (Deprecated)"),
"redir" => gettext("Redirect"), "redir" => gettext("Redirect"),
"althost" => gettext("Alternate Host"), "althost" => gettext("Alternate Host Address (Deprecated)"),
"routeradv" => gettext("Router advertisement"), "routeradv" => gettext("Router Advertisement"),
"routersol" => gettext("Router solicitation"), "routersol" => gettext("Router Solicitation"),
"timex" => gettext("Time exceeded"), "timex" => gettext("Time Exceeded"),
"paramprob" => gettext("Invalid IP header"), "paramprob" => gettext("Parameter Problem"),
"timereq" => gettext("Timestamp"), "timereq" => gettext("Timestamp"),
"timerep" => gettext("Timestamp reply"), "timerep" => gettext("Timestamp Reply"),
"inforeq" => gettext("Information request"), "inforeq" => gettext("Information Request (Deprecated)"),
"inforep" => gettext("Information reply"), "inforep" => gettext("Information Reply (Deprecated)"),
"maskreq" => gettext("Address mask request"), "maskreq" => gettext("Address Mask Request (Deprecated)"),
"maskrep" => gettext("Address mask reply") "maskrep" => gettext("Address Mask Reply (Deprecated)")
); );
if (isset($filterent['protocol']) && $filterent['protocol'] == "icmp" && !empty($filterent['icmptype'])): if (isset($filterent['protocol']) && $filterent['protocol'] == "icmp" && !empty($filterent['icmptype'])):
?> ?>
......
...@@ -856,22 +856,22 @@ include("head.inc"); ...@@ -856,22 +856,22 @@ include("head.inc");
<?php <?php
$icmptypes = array( $icmptypes = array(
"" => gettext("any"), "" => gettext("any"),
"echoreq" => gettext("Echo request"), "echoreq" => gettext("Echo Request"),
"echorep" => gettext("Echo reply"), "echorep" => gettext("Echo Reply"),
"unreach" => gettext("Destination unreachable"), "unreach" => gettext("Destination Unreachable"),
"squench" => gettext("Source quench"), "squench" => gettext("Source Quench (Deprecated)"),
"redir" => gettext("Redirect"), "redir" => gettext("Redirect"),
"althost" => gettext("Alternate Host"), "althost" => gettext("Alternate Host Address (Deprecated)"),
"routeradv" => gettext("Router advertisement"), "routeradv" => gettext("Router Advertisement"),
"routersol" => gettext("Router solicitation"), "routersol" => gettext("Router Solicitation"),
"timex" => gettext("Time exceeded"), "timex" => gettext("Time Exceeded"),
"paramprob" => gettext("Invalid IP header"), "paramprob" => gettext("Parameter Problem"),
"timereq" => gettext("Timestamp"), "timereq" => gettext("Timestamp"),
"timerep" => gettext("Timestamp reply"), "timerep" => gettext("Timestamp Reply"),
"inforeq" => gettext("Information request"), "inforeq" => gettext("Information Request (Deprecated)"),
"inforep" => gettext("Information reply"), "inforep" => gettext("Information Reply (Deprecated)"),
"maskreq" => gettext("Address mask request"), "maskreq" => gettext("Address Mask Request (Deprecated)"),
"maskrep" => gettext("Address mask reply") "maskrep" => gettext("Address Mask Reply (Deprecated)")
); );
foreach ($icmptypes as $icmptype => $descr): ?> foreach ($icmptypes as $icmptype => $descr): ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment