setipdscp.hh

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

HH
46
字号
#ifndef CLICK_SETIPDSCP_HH#define CLICK_SETIPDSCP_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * SetIPDSCP(VAL) * =s IP * sets IP packets' DSCP fields * =d * Expects IP packets as input and * sets their Differential Services Code Point to VAL. * Then it incrementally recalculates the IP checksum * and passes the packet to output 0. * The DSCP is the upper 6 bits of the IP TOS field. */class SetIPDSCP : public Element {  unsigned char _dscp;   public:    SetIPDSCP();  ~SetIPDSCP();    const char *class_name() const		{ return "SetIPDSCP"; }  const char *processing() const		{ return AGNOSTIC; }  unsigned char dscp() const			{ return _dscp; }    int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const		{ return true; }  void add_handlers();  inline Packet *smaction(Packet *);  void push(int, Packet *p);  Packet *pull(int);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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