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

📄 truncateippayload.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_TRUNCATEIPPAYLOAD_HH#define CLICK_TRUNCATEIPPAYLOAD_HH#include <click/element.hh>CLICK_DECLS/*=cTruncateIPPayload([LENGTH, TRANSPORT])=s basicmodlimit payload length=dShorten IP packets to have payload of at most LENGTH bytes.  Normally"payload" begins at the end of the transport header (TruncateIPPayloadunderstands TCP, UDP, and ICMP headers).  If TRANSPORT is false, "payload"begins at the end of the IP header.  Non-IP packets are truncated to at mostLENGTH bytes.  Default LENGTH is 0.The EXTRA_LENGTH keyword argument determines whether packets' extra lengthannotations are updated to account for any dropped bytes.  Default is true.=a Truncate*/class TruncateIPPayload : public Element { public:    TruncateIPPayload();    ~TruncateIPPayload();    const char *class_name() const		{ return "TruncateIPPayload"; }    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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -