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

📄 ipmirror.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef CLICK_IPMIRROR_HH#define CLICK_IPMIRROR_HH#include <click/element.hh>CLICK_DECLS/*=cIPMirror=s ipswaps IP source and destination=dIncoming packets must have their IP header annotations set. Swaps packets'source and destination IP addresses. Packets containing TCP or UDPheaders---that is, first fragments of packets with protocol 6 or 17---alsohave their source and destination ports swapped. TCP packets also have theirseq and ack numbers swapped.The IP and TCP or UDP checksums are not changed. They don't need to be; theseswap operations do not affect checksums.*/class IPMirror : public Element { public:  IPMirror();  ~IPMirror();  const char *class_name() const		{ return "IPMirror"; }  const char *port_count() const		{ return PORTS_1_1; }  const char *processing() const		{ return AGNOSTIC; }  Packet *simple_action(Packet *);};CLICK_ENDDECLS#endif // CLICK_IPMIRROR_HH

⌨️ 快捷键说明

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