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

📄 storeetheraddress.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef CLICK_STOREETHERADDRESS_HH#define CLICK_STOREETHERADDRESS_HH#include <click/element.hh>#include <click/etheraddress.hh>CLICK_DECLS/*=cStoreEtherAddress(ADDR, OFFSET)=s ethernetstores Ethernet address in packet=dWrites an Ethernet address ADDR into the packet at offset OFFSET.  If OFFSETis out of range, the input packet is dropped or emitted on optional output 1.The OFFSET argument may be 'src' or 'dst'.  These strings are equivalent tooffsets 6 and 0, respectively, which are the offsets into an Ethernet headerof the source and destination Ethernet addresses.=h addr read/writeReturn or set the ADDR argument.=aEtherEncap*/class StoreEtherAddress : public Element { public:    StoreEtherAddress();    ~StoreEtherAddress();    const char *class_name() const		{ return "StoreEtherAddress"; }    const char *port_count() const		{ return PORTS_1_1X2; }    const char *processing() const		{ return PROCESSING_A_AH; }    int configure(Vector<String> &, ErrorHandler *);    void add_handlers();    Packet *simple_action(Packet *); private:    unsigned _offset;    EtherAddress _address;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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