iprwpatterns.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 46 行
HH
46 行
#ifndef CLICK_IPRWPATTERNS_HH#define CLICK_IPRWPATTERNS_HH#include "elements/ip/iprw.hh"#include <click/hashmap.hh>CLICK_DECLS/* * =c * IPRewriterPatterns(NAME PATTERN, ...) * =s TCP * specifies shared IPRewriter(n) patterns * =io * None * =d * * This element stores information about shared patterns that IPRewriter and * related elements can use. Each configuration argument is a name and a * pattern, 'NAME SADDR SPORT DADDR DPORT'. The NAMEs for every argument in * every IPRewriterPatterns element in the configuration must be distinct. * * =a IPRewriter */class IPRewriterPatterns : public Element { HashMap<String, int> _name_map; Vector<IPRw::Pattern *> _patterns; public: IPRewriterPatterns(); ~IPRewriterPatterns(); const char *class_name() const { return "IPRewriterPatterns"; } int configure_phase() const { return IPRw::CONFIGURE_PHASE_PATTERNS; } int configure(Vector<String> &, ErrorHandler *); void cleanup(CleanupStage); static IPRw::Pattern *find(Element *, const String &, ErrorHandler *); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?