ip6mirror.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 43 行
HH
43 行
#ifndef CLICK_IP6MIRROR_HH#define CLICK_IP6MIRROR_HH#include <click/element.hh>CLICK_DECLS/*=cIP6Mirror=s IPv6swaps IP6 source and destination=dIncoming packets must have their IP6 header annotations set. Swaps packets'source and destination IP6 addresses. Packets containing TCP or UDPheaders---that is, first fragments of packets with protocol 6 or 17---alsohave their source and destination ports swapped.The TCP or UDP checksums are not changed. They don't need to be; theseswap operations do not affect checksums.*/class IP6Mirror : public Element { public: IP6Mirror(); ~IP6Mirror(); const char *class_name() const { return "IP6Mirror"; } const char *processing() const { return AGNOSTIC; } Packet *simple_action(Packet *); };CLICK_ENDDECLS#endif /* IP6MIRROR_HH */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?