📄 etherfilter.hh
字号:
#ifndef CLICK_ETHERFILTER_HH#define CLICK_ETHERFILTER_HH#include <click/element.hh>#include <click/vector.hh>#include <click/packet.hh>#include <click/etheraddress.hh>class EtherFilter : public Element { public: EtherFilter(); ~EtherFilter(); const char *class_name() const { return "EtherFilter";} const char *processing() const { return "a/ah";} int configure(Vector<String> &, ErrorHandler *); Packet *simple_action(Packet *);private: typedef Vector<EtherAddress> EtherDests; EtherDests _edests; uint16_t _enc_ethtype; uint16_t _ack_ethtype; uint16_t _recp_ethtype; uint16_t _nothing_ethtype; uint16_t _basic_ethtype; char * flags_to_string(uint8_t, uint8_t); inline Packet *drop(Packet *);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -