Farly::ASA::ICMPFormatter - Map ICMP type string ID's and integers


Farly::ASA::ICMPFormatter is like an enum class, but not. It associates ICMP type strings with ICMP type integers and vice versa. ICMPFormatter is device specific.


as_string( <ICMP type number> )

Returns a name for the given ICMP type.

as_integer( <ICMP type name> )

Returns the ICMP type number for the given ICMP type name.


Farly::ASA::ICMPFormatter Copyright (C) 2012 Trystan Johnson

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <>.