📄 listenetherswitch.hh
字号:
#ifndef CLICK_LISTENETHERSWITCH_HH#define CLICK_LISTENETHERSWITCH_HH#include "etherswitch.hh"CLICK_DECLS/*=cListenEtherSwitch([I<keywords> TIMEOUT])=s ethernetlearning, forwarding Ethernet switch with listen port=dA version of EtherSwitch with a listen port. Where EtherSwitch has exactly asmany inputs as it has outputs, ListenEtherSwitch has one more output than ithas inputs. This last output is the listen port; a copy of every receivedpacket is sent to that port. In an element with N inputs and N+1 outputs, the(N+1)th output is the listen port. See EtherSwitch for more information.=aListenEtherSwitch*/class ListenEtherSwitch : public EtherSwitch { public: ListenEtherSwitch(); ~ListenEtherSwitch(); const char *class_name() const { return "ListenEtherSwitch"; } const char *port_count() const { return "-/=+"; } void push(int port, Packet* p);};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -