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

📄 setudpchecksum.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
// -*- c-basic-offset: 4 -*-#ifndef CLICK_SETUDPCHECKSUM_HH#define CLICK_SETUDPCHECKSUM_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * SetUDPChecksum() * =s udp * sets UDP packets' checksums * =d * Input packets must be UDP in IP (the protocol field isn't checked). * * Calculates the UDP checksum and sets the UDP header's checksum field. Uses * IP header fields to generate the pseudo-header. * * If input packets are IP fragments, or the UDP length is longer than the * packet, then pushes the input packets to the 2nd output, or drops them if * there is no 2nd output. * * =a CheckUDPHeader, SetIPChecksum, CheckIPHeader, SetTCPChecksum */class SetUDPChecksum : public Element { public:    SetUDPChecksum();    ~SetUDPChecksum();    const char *class_name() const	{ return "SetUDPChecksum"; }    const char *port_count() const	{ return PORTS_1_1X2; }    const char *processing() const	{ return PROCESSING_A_AH; }    Packet *simple_action(Packet *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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