settcpchecksum.hh

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

HH
38
字号
#ifndef CLICK_SETTCPCHECKSUM_HH#define CLICK_SETTCPCHECKSUM_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * SetTCPChecksum([FIX-OFF?]) * =s TCP * sets TCP packets' checksums * =d * Input packets should be TCP in IP. * * Calculates the TCP header's checksum and sets the checksum header field. * Uses the IP header fields to generate the pseudo-header. * * =a CheckTCPHeader, SetIPChecksum, CheckIPHeader, SetUDPChecksum */class SetTCPChecksum : public Element { public:    SetTCPChecksum();  ~SetTCPChecksum();    const char *class_name() const		{ return "SetTCPChecksum"; }  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &conf, ErrorHandler *errh);  Packet *simple_action(Packet *);private:  bool _fixoff;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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