1 /* 2 3 Firewall Builder 4 5 Copyright (C) 2011 NetCitadel, LLC 6 7 Author: Vadim Kurland vadim@fwbuilder.org 8 9 This program is free software which we release under the GNU General Public 10 License. You may redistribute and/or modify this program under the terms 11 of that license as published by the Free Software Foundation; either 12 version 2 of the License, or (at your option) any later version. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License for more details. 18 19 To get a copy of the GNU General Public License, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 22 */ 23 24 25 #ifndef _ICMP_SPEC_H_ 26 #define _ICMP_SPEC_H_ 27 28 #include <map> 29 #include <list> 30 #include <string> 31 32 33 class IcmpSpec 34 { 35 public: 36 std::string icmp_type_name; 37 std::string icmp_type_int; 38 std::string icmp_code_name; 39 std::string icmp_code_int; 40 IcmpSpec()41 IcmpSpec() 42 { 43 icmp_type_name = ""; 44 icmp_type_int = ""; 45 icmp_code_name = ""; 46 icmp_code_int = ""; 47 } 48 IcmpSpec(const IcmpSpec & other)49 IcmpSpec(const IcmpSpec &other) 50 { 51 icmp_type_name = other.icmp_type_name; 52 icmp_type_int = other.icmp_type_int; 53 icmp_code_name = other.icmp_code_name; 54 icmp_code_int = other.icmp_code_int; 55 } 56 IcmpSpec(const std::string s1,const std::string s2,const std::string s3,const std::string s4)57 IcmpSpec(const std::string s1, const std::string s2, 58 const std::string s3, const std::string s4) 59 { 60 icmp_type_name = s1; 61 icmp_type_int = s2; 62 icmp_code_name = s3; 63 icmp_code_int = s4; 64 } 65 }; 66 67 68 69 #endif 70