Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120574340
acneaggregate.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, 08:21
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Jul 7, 08:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27193388
Attached To
R6591 HyMAB
acneaggregate.hh
View Options
#ifndef ACNEAGGREGATE_HH
#define ACNEAGGREGATE_HH
#include <clicknet/wifi.h>
#include <clicknet/ether.h>
#include <click/packet_anno.hh>
#include "hybridMAC.h"
#include <click/element.hh>
#include <click/notifier.hh>
#include <click/router.hh>
#include <click/confparse.hh>
#include <click/timer.hh>
#include <click/error.hh>
#include <click/etheraddress.hh>
#include <click/hashtable.hh>
#include <click/vector.hh>
#include <click/config.h>
#include <click/args.hh>
#include <click/string.hh>
#include <click/straccum.hh>
#include "util.hh"
//For debug_output:
#ifdef CLICK_USERLEVEL
# include <stdarg.h>
#endif
CLICK_DECLS
class AcneAggregate : public Element {
public:
AcneAggregate();
~AcneAggregate();
const char *class_name() const { return "AcneAggregate"; }
const char *port_count() const { return "1/1"; }
const char *processing() const { return PUSH; }
int configure(Vector<String> &, ErrorHandler *);
void push(int, Packet*);
void run_timer(Timer *t);
void reinitialize_packet();
void set_active(bool b) {_active = b;}
static int active_handler(const String &, Element *, void *,ErrorHandler *);
void add_handlers();
private:
Timer timer;
WritablePacket *_packet;
uint32_t _period;
uint32_t _max_length;
unsigned char *_pointer;
uint32_t _seq_num;
bool _debug;
bool _active;
};
CLICK_ENDDECLS
#endif // ACNEAGGREGATE_HH
Event Timeline
Log In to Comment