Page MenuHomec4science

controlmsgsprioritydecap.hh
No OneTemporary

File Metadata

Created
Sat, Jul 5, 13:56

controlmsgsprioritydecap.hh

#ifndef CLICK_CTRLMSGSPRIORITYDECAP_HH
#define CLICK_CTRLMSGSPRIORITYDECAP_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 ControlMsgsPriorityDecap : public Element {
public:
ControlMsgsPriorityDecap();
~ControlMsgsPriorityDecap();
const char *class_name() const { return "ControlMsgsPriorityDecap"; }
const char *port_count() const { return "1/1"; }
const char *processing() const { return PUSH; }
// input 0: packets from network (remove IP header present)
// output 0: push packets from network
int configure(Vector<String> &, ErrorHandler *);
int initialize(ErrorHandler *);
void push(int, Packet*);
// handlers
void add_handlers();
static int active_handler(const String &, Element *, void *,ErrorHandler *);
void set_active(bool b) {_active = b;}
protected:
bool _debug;
bool _active;
};
CLICK_ENDDECLS
#endif

Event Timeline