forceudp.hh

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

HH
36
字号
#ifndef CLICK_FORCEUDP_HH#define CLICK_FORCEUDP_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * ForceUDP([DPORT]) * =s UDP * sets UDP packet fields * =d * Set the checksum and some other fields to try to make a * packet look like UDP. If DPORT is specified and not -1, forces * the destination port to be DPORT. */class ForceUDP : public Element {public:  ForceUDP();  ~ForceUDP();    const char *class_name() const		{ return "ForceUDP"; }  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &conf, ErrorHandler *errh);  Packet *simple_action(Packet *);private:  int _count;  int _dport;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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