copytcpseq.hh

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

HH
48
字号
#ifndef CLICK_COPYTCPSEQ_HH#define CLICK_COPYTCPSEQ_HH#include <click/element.hh>#include <clicknet/tcp.h>#include <click/ipflowid.hh>CLICK_DECLS/* * =c * CopyTCPSeq() * =s TCP * sets TCP sequence number * =d * * remembers highest sequence number from packets between input/output 0 and * tag that number onto packets between input/output 1. */class CopyTCPSeq : public Element {private:  static int reset_write_handler    (const String &, Element *, void *, ErrorHandler *);  void monitor(Packet *);  Packet *set(Packet *);  bool _start;  unsigned _seq;public:  CopyTCPSeq();  ~CopyTCPSeq();    const char *class_name() const	{ return "CopyTCPSeq"; }  const char *processing() const	{ return AGNOSTIC; }  int initialize(ErrorHandler *);  int configure(Vector<String> &conf, ErrorHandler *errh);  void push(int, Packet *);  Packet *pull(int);  void add_handlers();};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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