Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120607171
controlmsgsprioritydecap.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 5, 13:56
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Jul 7, 13:56 (2 d)
Engine
blob
Format
Raw Data
Handle
27189635
Attached To
R6591 HyMAB
controlmsgsprioritydecap.hh
View Options
#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
Log In to Comment