#include <uwudp-module.h>
UwUdp class is used to manage UWUDP packets, and flows to and from upper modules.
Definition at line 107 of file uwudp-module.h.
◆ map_packets_el
◆ UwUdp()
◆ ~UwUdp()
◆ assignPort()
int UwUdp::assignPort |
( |
Module * |
m | ) |
|
|
virtual |
Associates a module with a port.
- Parameters
-
Module* | Module to which associate a port. |
- Returns
- Id of the port associated to the module.
Definition at line 227 of file uwudp-module.cpp.
◆ command()
int UwUdp::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
|
virtual |
TCL command interpreter.
It implements the following OTcl methods:
- Parameters
-
argc | Number of arguments in argv. |
argv | Array of strings which are the command parameters (Note that argv[0] is the name of the object). |
- Returns
- TCL_OK or TCL_ERROR whether the command has been dispatched successfully or not.
Definition at line 96 of file uwudp-module.cpp.
◆ getUdpHeaderSize()
static int UwUdp::getUdpHeaderSize |
( |
| ) |
|
|
inlinestaticprotected |
◆ printIdsPkts()
void UwUdp::printIdsPkts |
( |
| ) |
const |
|
inline |
Prints the IDs of the packet's headers defined by UWUDP.
Definition at line 159 of file uwudp-module.h.
◆ recv() [1/2]
void UwUdp::recv |
( |
Packet * |
p | ) |
|
|
virtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Definition at line 122 of file uwudp-module.cpp.
◆ recv() [2/2]
void UwUdp::recv |
( |
Packet * |
p, |
|
|
int |
idSrc |
|
) |
| |
|
virtual |
Performs the reception of packets from upper and lower layers.
- Parameters
-
Packet* | Pointer to the packet will be received. |
Handler* | Handler. |
Definition at line 131 of file uwudp-module.cpp.
◆ debug_
Flag to enable or disable dirrefent levels of debug.
Definition at line 181 of file uwudp-module.h.
◆ drop_duplicated_packets_
int UwUdp::drop_duplicated_packets_ |
|
protected |
Flat to enable or disable the drop of duplicated packets.
Definition at line 179 of file uwudp-module.h.
◆ id_map
map<int, int> UwUdp::id_map |
|
protected |
◆ map_packets
Map used to keep track of the packets received by each port.
The key is the port number. The second element contains the saddr IP and a vector used as bucketlist.
Definition at line 173 of file uwudp-module.h.
◆ port_map
map<int, int> UwUdp::port_map |
|
protected |
◆ portcounter
uint16_t UwUdp::portcounter |
|
protected |
Counter used to generate new port numbers.
Definition at line 166 of file uwudp-module.h.
The documentation for this class was generated from the following files: