Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120645656
controlmsgspriorityencap.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, 22:14
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Jul 7, 22:14 (2 d)
Engine
blob
Format
Raw Data
Handle
27193102
Attached To
R6591 HyMAB
controlmsgspriorityencap.hh
View Options
#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
Log In to Comment