setpackettype.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 48 行

HH
48
字号
// -*- 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 + =
减小字号Ctrl + -
显示快捷键?