📄 setpackettype.hh
字号:
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_SETPACKETTYPE_HH#define CLICK_SETPACKETTYPE_HH#include <click/element.hh>CLICK_DECLS/*=cSetPacketType(TYPE)=s annotationssets packet type annotation=dSetPacketType sets passing packets' packet type annotations to TYPE. Thepacket type annotation tells Linux about the packet's link-levelcharacteristics. For example, was the packet sent directly to this host, orwas it broadcast? TYPE should be one of `C<HOST>', `C<BROADCAST>',`C<MULTICAST>', `C<OTHERHOST>', `C<OUTGOING>', or `C<LOOPBACK>'. */class SetPacketType : public Element { public: SetPacketType(); ~SetPacketType(); const char *class_name() const { return "SetPacketType"; } const char *processing() const { return AGNOSTIC; } static int parse_type(const String &); static const char *unparse_type(int); int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } Packet *simple_action(Packet *); protected: Packet::PacketType _ptype;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -