⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setipdscp.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef CLICK_SETIPDSCP_HH#define CLICK_SETIPDSCP_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * SetIPDSCP(DSCP) * =s ip * sets IP packets' DSCP fields * =d * Expects IP packets as input and * sets their Differential Services Code Point to DSCP. * 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 { public:  SetIPDSCP();  ~SetIPDSCP();  const char *class_name() const		{ return "SetIPDSCP"; }  const char *port_count() const		{ return PORTS_1_1; }  const char *processing() const		{ return AGNOSTIC; }  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);  private:    unsigned char _dscp;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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