icmppingresponder.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 49 行
HH
49 行
#ifndef CLICK_ICMPPINGRESPONDER_HH#define CLICK_ICMPPINGRESPONDER_HH#include <click/element.hh>CLICK_DECLS/*=cICMPPingResponder()=s ICMPresponds to ICMP echo requests=dRespond to ICMP echo requests. Incoming packets must have their IP headerannotations set. The corresponding reply is generated for any ICMP echorequest and emitted on output 0. The reply's destination IP address annotationis set appropriately, its paint annotation is cleared, and its timestamp isset to the current time. Other annotations are copied from the input packet.IP packets other than ICMP echo requests are emitted on the second output, ifthere are two outputs; otherwise, they are dropped.=head1 BUGSICMPPingResponder does not pay attention to source route options; it should.=aICMPSendPings, ICMPError */class ICMPPingResponder : public Element { public: ICMPPingResponder(); ~ICMPPingResponder(); const char *class_name() const { return "ICMPPingResponder"; } const char *processing() const { return "a/ah"; } void notify_noutputs(int); Packet *simple_action(Packet *); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?