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

📄 icmppingencap.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_ICMPPINGENCAP_HH#define CLICK_ICMPPINGENCAP_HH#include <click/element.hh>#include <click/timer.hh>CLICK_DECLS/*=cICMPPingEncap(SADDR, DADDR [, I<keyword> IDENTIFIER])=s ICMP, encapsulationencapsulates packets in ICMP ping headers=dEncapsulates input packets in an ICMP ping header with source IP address SADDRand destination IP address DADDR.  Advances the "sequence" field by one foreach packet.  (The sequence field is stored in network byte order in thepacket.)Keyword arguments are:=over 8=item IDENTIFIERInteger. Determines the ICMP identifier field in emitted pings. Default is0.=back=aICMPPingSource, ICMPPingResponder, ICMPPingRewriter */class ICMPPingEncap : public Element { public:    ICMPPingEncap();    ~ICMPPingEncap();    const char *class_name() const		{ return "ICMPPingEncap"; }    const char *processing() const		{ return AGNOSTIC; }        int configure(Vector<String> &, ErrorHandler *);    Packet *simple_action(Packet *);  private:      struct in_addr _src;    struct in_addr _dst;    uint16_t _icmp_id;    uint16_t _ip_id;#if HAVE_FAST_CHECKSUM && FAST_CHECKSUM_ALIGNED    bool _aligned;#endif};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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