![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * IPTables Rule * 00003 * __________________________________________________________________________ * 00004 * * 00005 * Copyright (C) 2005 * 00006 * Lehrstuhl fuer Kommunikationsnetze (ComNets) * 00007 * Kopernikusstr. 16, D-52074 Aachen, Germany * 00008 * phone: ++49-241-80-27910 (phone), fax: ++49-241-80-22242 * 00009 * email: wns@comnetsrwth-aachen.de, www: http://wns.comnets.rwth-aachen.de/ * 00010 ******************************************************************************/ 00011 00012 #ifndef IP_IPTABLES_RULE_HPP 00013 #define IP_IPTABLES_RULE_HPP 00014 00015 #include <IP/iptables/filters/FilterInterface.hpp> 00016 #include <IP/iptables/targets/TargetInterface.hpp> 00017 00018 namespace ip { namespace iptables { 00019 00025 class Rule 00026 { 00027 public: 00028 typedef int RuleTag; 00029 00033 Rule(filters::FilterInterface*, targets::TargetInterface*, RuleTag); 00034 00038 ~Rule(); 00039 00040 00044 filters::FilterInterface* 00045 getFilter(); 00046 00050 targets::TargetInterface* 00051 getTarget(); 00052 00056 ip::iptables::Rule::RuleTag 00057 getRuleTag(); 00058 00059 private: 00060 filters::FilterInterface* filter; 00061 targets::TargetInterface* target; 00062 ip::iptables::Rule::RuleTag ruleTag; 00063 }; 00064 00065 00066 }// iptables 00067 }// ip 00068 00069 #endif // IP_IPTABLES_RULE_HPP
1.5.5