forceip.hh

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

HH
44
字号
#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 + =
减小字号Ctrl + -
显示快捷键?