#ifndef CLICK_ARPPRINT_HH
#define CLICK_ARPPRINT_HH
#include <click/element.hh>
CLICK_DECLS
/*
=c
ARPPrint([TAG, I<KEYWORDS>])
=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<String> &, 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
syntax highlighted by Code2HTML, v. 0.9.1