setrandipaddress.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 44 行
HH
44 行
#ifndef SetRandIPAddress_hh#define SetRandIPAddress_hh#include <click/element.hh>#include <click/ipaddress.hh>CLICK_DECLS/* * =c * SetRandIPAddress(ADDR/LEN, [MAX]) * =s IP, annotations * sets destination IP address annotations randomly * =d * Set the destination IP address annotation to a random number whose * upper LEN bits are equal to ADDR. * * If MAX is given, at most MAX 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 *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); Packet *simple_action(Packet *); IPAddress pick();};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?