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

📄 setrandipaddress.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef SetRandIPAddress_hh#define SetRandIPAddress_hh#include <click/element.hh>#include <click/ipaddress.hh>CLICK_DECLS/* * =c * SetRandIPAddress(PREFIX, [LIMIT]) * =s ip * sets destination IP address annotations randomly * =d * Set the destination IP address annotation to a random number within * the specified PREFIX. * * If LIMIT is given, at most LIMIT distinct addresses will be generated. * * =a StoreIPAddress, GetIPAddress, SetIPAddress */class SetRandIPAddress : public Element {  IPAddress _ip;  IPAddress _mask;  int _max;  IPAddress *_addrs; public:  SetRandIPAddress();  ~SetRandIPAddress();  const char *class_name() const	{ return "SetRandIPAddress"; }  const char *port_count() const	{ return PORTS_1_1; }  const char *processing() const	{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);  Packet *simple_action(Packet *);  IPAddress pick();};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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