getipaddress.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 48 行

HH
48
字号
#ifndef CLICK_GETIPADDRESS_HH#define CLICK_GETIPADDRESS_HH#include <click/element.hh>#include <click/ipaddress.hh>CLICK_DECLS/* * =c * GetIPAddress(OFFSET) * =s ip * sets destination IP address annotation from packet data * =d * * Copies 4 bytes from the packet, starting at OFFSET, to the destination IP * address annotation. OFFSET is usually 16, to fetch the destination address * from an IP packet. * * =n * The destination address annotation is used by elements * that need to know where the packet is going. * Such elements include ARPQuerier and LookupIPRoute. * * =a ARPQuerier, StaticIPLookup, SetIPAddress, StoreIPAddress */class GetIPAddress : public Element {  int _offset; public:  GetIPAddress();  ~GetIPAddress();  const char *class_name() const		{ return "GetIPAddress"; }  const char *port_count() const		{ return PORTS_1_1; }  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);  Packet *simple_action(Packet *);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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