listenetherswitch.hh
来自「Click is a modular router toolkit. To us」· HH 代码 · 共 42 行
HH
42 行
#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 + =
减小字号Ctrl + -
显示快捷键?