📄 dropbroadcasts.hh
字号:
#ifndef CLICK_DROPBROADCASTS_HH#define CLICK_DROPBROADCASTS_HH#include <click/element.hh>#include <click/atomic.hh>CLICK_DECLS/* * =c * DropBroadcasts * =s dropping * drops link-level broadcast and multicast packets * =d * Drop packets that arrived as link-level broadcast or multicast. * Used to implement the requirement that IP routers not forward * link-level broadcasts. * Looks at the packet_type_anno annotation, which FromDevice sets. * =a FromDevice */class DropBroadcasts : public Element { public: DropBroadcasts(); ~DropBroadcasts(); const char *class_name() const { return "DropBroadcasts"; } const char *processing() const { return "a/ah"; } void notify_noutputs(int); void add_handlers(); uint32_t drops() const { return _drops; } void drop_it(Packet *); Packet *simple_action(Packet *);private: atomic_uint32_t _drops;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -