#ifndef CLICK_SETIPADDRESS_HH #define CLICK_SETIPADDRESS_HH #include #include CLICK_DECLS /* * =c * SetIPAddress(IP) * =s ip * sets destination IP address annotations * =d * Set the destination IP address annotation of incoming packets to the * static IP address IP. * * =a StoreIPAddress, GetIPAddress */ class SetIPAddress : public Element { IPAddress _ip; public: SetIPAddress(); ~SetIPAddress(); const char *class_name() const { return "SetIPAddress"; } const char *port_count() const { return PORTS_1_1; } const char *processing() const { return AGNOSTIC; } int configure(Vector &, ErrorHandler *); bool can_live_reconfigure() const { return true; } Packet *simple_action(Packet *); }; CLICK_ENDDECLS #endif