⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fixipsrc.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_FIXIPSRC_HH#define CLICK_FIXIPSRC_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * FixIPSrc(IPADDR) * =s IP * sets IP source field if requested by annotation * =d * * Expects an IP packet as input. If its Fix IP Source annotation is set, then * changes its IP source address field to IPADDR and recomputes the checksum. * Used by elements such as ICMPError that are required by standards to use * the IP address on the outgoing interface as the source. Such elements must * set ip_src to something reasonable in case the outgoing interface has no IP * address. * * Also clears the Fix IP Source annotation. * * =n * * The Fix IP Source annotation is stored as user annotation 3. *  * =a ICMPError */class FixIPSrc : public Element {  struct in_addr _my_ip;public:  FixIPSrc();  ~FixIPSrc();    const char *class_name() const		{ return "FixIPSrc"; }  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);  WritablePacket *fix_it(Packet *);  Packet *simple_action(Packet *);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -