Page MenuHomec4science

controlmsgspriorityencap.hh
No OneTemporary

File Metadata

Created
Sat, Jul 5, 22:14

controlmsgspriorityencap.hh

#ifndef CLICK_CTRLMSGSPRIORITYENCAP_HH
#define CLICK_CTRLMSGSPRIORITYENCAP_HH
#include <click/element.hh>
#include <click/notifier.hh>
#include <click/router.hh>
#include <click/confparse.hh>
#include <click/error.hh>
#include <click/config.h>
#include <click/args.hh>
#include "util.hh"
#ifdef CLICK_USERLEVEL
# include <stdarg.h>
#endif
CLICK_DECLS
class ControlMsgsPriorityEncap : public Element {
public:
ControlMsgsPriorityEncap();
~ControlMsgsPriorityEncap();
const char *class_name() const { return "ControlMsgsPriorityEncap"; }
const char *port_count() const { return "1/1"; }
const char *processing() const { return AGNOSTIC; }
// input 0: packets from host (add IP header with desired TOS)
// output 0: push packets from host
int configure(Vector<String> &, ErrorHandler *);
int initialize(ErrorHandler *);
void push(int, Packet*);
Packet* pull(int);
Packet *encap(Packet*);
// handlers
void add_handlers();
static int active_handler(const String &, Element *, void *,ErrorHandler *);
void set_active(bool b) {_active = b;}
protected:
bool _active;
bool _debug;
};
CLICK_ENDDECLS
#endif

Event Timeline