📄 forceip.hh
字号:
#ifndef CLICK_FORCEIP_HH#define CLICK_FORCEIP_HH#include <click/element.hh>#include <click/glue.hh>#include <clicknet/ip.h>CLICK_DECLS/* * =c * ForceIP() * =s IP * Fixes fields to make packets into legal IP packets. * =d * * Fixes various fields in incoming packets to make sure they * are legal IP packets. * * =e * * RandomSource(20) * -> SetIPAddress(1.2.3.4) * -> StoreIPAddress(16) * -> ForceIP() -> ... */class ForceIP : public Element { int _count; public: ForceIP(); ~ForceIP(); const char *class_name() const { return "ForceIP"; } const char *processing() const { return AGNOSTIC; } Packet *simple_action(Packet *); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -