Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122573577
radiotapdecap.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
Sun, Jul 20, 14:43
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Jul 22, 14:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27504051
Attached To
R1252 EMPoWER
radiotapdecap.hh
View Options
#ifndef CLICK_RADIOTAPDECAP_HH
#define CLICK_RADIOTAPDECAP_HH
#include <click/element.hh>
#include <click/etheraddress.hh>
#include <clicknet/ether.h>
#include <click/hashtable.hh>
CLICK_DECLS
/*
=c
RadiotapDecap()
=s Wifi
Pulls the click_wifi_radiotap header from a packet and stores it in Packet::anno()
=d
Removes the radiotap header and copies to to Packet->anno(). This contains
informatino such as rssi, noise, bitrate, etc.
=a RadiotapEncap
*/
class
RadiotapDecap
:
public
Element
{
public
:
RadiotapDecap
();
~
RadiotapDecap
();
const
char
*
class_name
()
const
{
return
"RadiotapDecap"
;
}
const
char
*
port_count
()
const
{
return
PORTS_1_1
;
}
const
char
*
processing
()
const
{
return
AGNOSTIC
;
}
int
configure
(
Vector
<
String
>
&
,
ErrorHandler
*
);
bool
can_live_reconfigure
()
const
{
return
true
;
}
Packet
*
simple_action
(
Packet
*
);
void
add_handlers
();
bool
_debug
;
private
:
Timestamp
_now
;
Timestamp
_last_print
;
Timestamp
_last_print_0
;
Timestamp
_last_print_done
;
EtherAddress
_eth_addr_1
;
EtherAddress
_dst_addr
;
uint32_t
_max_length
;
uint32_t
_nb_packets
;
HashTable
<
uint32_t
,
int
>
_test_if
;
};
CLICK_ENDDECLS
#endif
Event Timeline
Log In to Comment