align.hh

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

HH
50
字号
#ifndef CLICK_ALIGN_HH#define CLICK_ALIGN_HH#include <click/element.hh>CLICK_DECLS/* =c * Align(MODULUS, OFFSET) * =s modification * aligns packet data * =d * * Aligns packet data. Each input packet is aligned so that its first byte is * OFFSET bytes off from a MODULUS-byte boundary. This may involve a packet * copy. * * MODULUS must be 2, 4, or 8. * =n * * The click-align(1) tool will insert this element automatically wherever it * is required. * * =e *   ... -> Align(4, 0) -> ... * * =a AlignmentInfo, click-align(1) */class Align : public Element {  int _offset;  int _mask;   public:    Align();  ~Align();    const char *class_name() const		{ return "Align"; }  const char *processing() const		{ return AGNOSTIC; }    int configure(Vector<String> &, ErrorHandler *);  Packet *smaction(Packet *);  void push(int, Packet *);  Packet *pull(int);  };CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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