📄 ipmirror.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 + -