#ifndef CLICK_ARPPRINT_HH #define CLICK_ARPPRINT_HH #include CLICK_DECLS /* =c ARPPrint([TAG, I]) =s arp pretty-prints ARP packets a la tcpdump =d Expects ARP packets as input. Prints out ARP packets in a human-readable tcpdump-like format, preceded by the TAG text. Keyword arguments are: =over 2 =item TIMESTAMP Boolean. Determines whether to print each packet's timestamp in seconds since 1970. Default is true. =item OUTFILE String. Only available at user level. PrintV<> information to the file specified by OUTFILE instead of standard error. =back =a Print, CheckARPHeader */ class ARPPrint : public Element { public: ARPPrint(); ~ARPPrint(); const char *class_name() const { return "ARPPrint"; } const char *port_count() const { return PORTS_1_1; } const char *processing() const { return AGNOSTIC; } int configure(Vector &, ErrorHandler *); int initialize(ErrorHandler *); void cleanup(CleanupStage); Packet *simple_action(Packet *); private: String _label; bool _print_timestamp : 1; #if CLICK_USERLEVEL String _outfilename; FILE *_outfile; #endif ErrorHandler *_errh; }; CLICK_ENDDECLS #endif