Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121032294
efficientipprint.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
Tue, Jul 8, 09:30
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Jul 10, 09:30 (2 d)
Engine
blob
Format
Raw Data
Handle
27279498
Attached To
R6591 HyMAB
efficientipprint.hh
View Options
// -*- mode: c++; c-basic-offset: 4 -*-
#ifndef CLICK_EFFICIENTIPPRINT_HH
#define CLICK_EFFICIENTIPPRINT_HH
#include <clicknet/wifi.h>
#include <clicknet/ether.h>
#include <click/packet_anno.hh>
#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 <click/standard/scheduleinfo.hh>
#include <clicknet/udp.h>
#include "util.hh"
CLICK_DECLS
class
EfficientIPPrint
:
public
Element
{
public
:
EfficientIPPrint
()
CLICK_COLD
;
const
char
*
class_name
()
const
{
return
"EfficientIPPrint"
;
}
const
char
*
port_count
()
const
{
return
"1-1"
;
}
const
char
*
processing
()
const
{
return
PROCESSING_A_AH
;
}
int
configure
(
Vector
<
String
>
&
,
ErrorHandler
*
);
int
initialize
(
ErrorHandler
*
);
void
set_active
(
bool
b
)
{
_active
=
b
;}
bool
can_live_reconfigure
()
const
{
return
true
;
}
static
int
set_bool_handler
(
const
String
&
,
Element
*
,
void
*
,
ErrorHandler
*
);
void
add_handlers
();
void
run_timer
(
Timer
*
timer
);
void
push
(
int
port
,
Packet
*
);
Packet
*
pull
(
int
port
);
private
:
Timer
_timer
;
int
_freq
;
bool
_active
;
StringAccum
_current_string
;
int
_count
;
String
_label
;
int
_count_timer
;
// fields to print
int
_id_modulo
;
bool
_ts
;
bool
_dstport
;
void
handle_packet
(
Packet
*
);
};
CLICK_ENDDECLS
#endif
Event Timeline
Log In to Comment