Page MenuHomec4science

printroutingpacket.hh
No OneTemporary

File Metadata

Created
Sun, Jul 6, 00:56

printroutingpacket.hh

#ifndef PRINTROUTINGPACKET_H
#define PRINTROUTINGPACKET_H
#include <click/element.hh>
#include <click/etheraddress.hh>
#include <click/ipaddress.hh>
#include <click/hashtable.hh>
//#include <assert.h>
//#include <click/fromfile.hh>
#include <click/string.hh>
#include <click/vector.hh>
#include "utilrouting.hh"
CLICK_DECLS
class PrintRoutingPacket : public Element
{
public:
PrintRoutingPacket();
~PrintRoutingPacket();
const char *class_name() const { return "PrintRoutingPacket"; }
const char *port_count() const { return "1/1"; }
const char *processing() const { return AGNOSTIC; }
int configure(Vector<String> &, ErrorHandler *);
void push(int, Packet *);
Packet *pull(int);
String print_info();
void reset();
void set_active(bool active) {_active=active;}
static int active_handler(const String &, Element *, void *,ErrorHandler *);
void add_handlers() ;
private:
String _label;
bool _active;
bool _all_msgs;
bool _with_eth;
bool _ts_only;
bool _print_special;
String _test_time;
int _wait_time;
bool _begin;
bool _test_mab_id;
bool _mab_ctrl_msgs;
int _print_every;
int _count_every;
int _count_every_all;
void print_packet(Packet *);
Packet *update_packet_test_time(Packet *);
uint64_t _nb_packets;
uint64_t _bytes_received;
Timestamp _time_first_packet;
Timestamp _time_last_packet;
Timestamp _time_cc_fwd;
Timestamp _time_fwd_mfl;
Timestamp _time_mfl_price;
Timestamp _time_price_queue;
Timestamp _time_queue_out;
Timestamp _max_time_cc_fwd;
Timestamp _max_time_fwd_mfl;
Timestamp _max_time_mfl_price;
Timestamp _max_time_price_queue;
Timestamp _max_time_queue_out;
};
CLICK_ENDDECLS
#endif // PRINTROUTINGPACKET_H

Event Timeline