📄 setipchecksum.hh
字号:
#ifndef CLICK_SETIPCHECKSUM_HH#define CLICK_SETIPCHECKSUM_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * SetIPChecksum() * =s IP * sets IP packets' checksums * =d * Expects an IP packet as input. * Calculates the IP header's checksum and sets the checksum header field. * * You will not normally need SetIPChecksum. Most elements that modify an IP * header, like DecIPTTL, SetIPDSCP, and IPRewriter, already update the * checksum incrementally. * * =a CheckIPHeader, DecIPTTL, SetIPDSCP, IPRewriter */class SetIPChecksum : public Element {public: SetIPChecksum(); ~SetIPChecksum(); const char *class_name() const { return "SetIPChecksum"; } const char *processing() const { return AGNOSTIC; } Packet *simple_action(Packet *);};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -