ipmirror.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 44 行

HH
44
字号
#ifndef CLICK_IPMIRROR_HH#define CLICK_IPMIRROR_HH#include <click/element.hh>CLICK_DECLS/*=cIPMirror=s IP, modificationswaps 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 *processing() const		{ return AGNOSTIC; }    Packet *simple_action(Packet *);  };CLICK_ENDDECLS#endif // CLICK_IPMIRROR_HH

⌨️ 快捷键说明

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