truncate.hh
来自「Click is a modular router toolkit. To us」· HH 代码 · 共 41 行
HH
41 行
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_TRUNCATE_HH#define CLICK_TRUNCATE_HH#include <click/element.hh>CLICK_DECLS/* * =c * Truncate(LENGTH) * =s basicmod * limit packet length. * =d * Shorten packets to at most LENGTH bytes. * * The EXTRA_LENGTH keyword argument determines whether packets' extra length * annotations are updated to account for any dropped bytes. Default is true. * =a Strip */class Truncate : public Element { public: Truncate(); ~Truncate(); const char *class_name() const { return "Truncate"; } const char *port_count() const { return PORTS_1_1; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); Packet *simple_action(Packet *); private: unsigned _nbytes;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?