#ifndef PINGPONGHH #define PINGPONGHH /* * =c * PingPong(LinkStat) * =s Grid * =d * * Expects Grid packets as input. Places ping-pong link stats, * acquired from LinkStat, into outgoing unicast packets. On the * other side of the link a LinkTracker element will aggregate these * statistics as neccessary. * * =a * AiroInfo, LinkStat, LinkTracker */ #include #include #include #include CLICK_DECLS class LinkStat; class PingPong : public Element { LinkStat *_ls; public: PingPong(); ~PingPong(); const char *class_name() const { return "PingPong"; } const char *port_count() const { return PORTS_1_1; } const char *processing() const { return "a/a"; } int configure(Vector &, ErrorHandler *); int initialize(ErrorHandler *); Packet *simple_action(Packet *); }; CLICK_ENDDECLS #endif