|
DESERT 4.0.0
|
#include <uwip-module.h>


Public Member Functions | |
| UWIPModule () | |
| virtual | ~UWIPModule ()=default |
| virtual void | recv (Packet *p) |
| virtual int | command (int argc, const char *const *argv) |
| virtual int | recvSyncClMsg (ClMessage *m) |
| void | printIdsPkts () const |
Static Public Member Functions | |
| static const string | printIP (const nsaddr_t &) |
| static const string | printIP (const uint8_t &) |
Static Protected Member Functions | |
| static int | getIpHeaderSize () |
Protected Attributes | |
| uint8_t | ipAddr_ |
| int | debug_ |
| bool | addr_type_inet |
Static Protected Attributes | |
| static uint8_t | lastIP = 0 |
UWIPModule class is used to define the Internet Protocol (IP) layer of a node.
| UWIPModule::UWIPModule | ( | ) |
Constructor of UWIPModule class.
|
virtualdefault |
Destructor of UWIPModule class.
|
virtual |
TCL command interpreter. It implements the following OTcl methods:
| 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). |
Reimplemented in UwStaticRoutingModule.
References addr_type_inet, getIpHeaderSize(), ipAddr_, printIdsPkts(), and printIP().

|
inlinestaticprotected |
Returns the size in byte of a hdr_sun_data packet header.
Referenced by command().
|
inline |
|
static |
Returns a string with an IP in the classic form "x.x.x.x" converting an ns2 nsaddr_t address.
| nsaddr_t& | ns2 address |
Referenced by command().
|
static |
Returns a string with an IP in the classic form "x.x.x.x" converting an uint8_t address.
| uint8_t& | address |
|
virtual |
Performs the reception of packets from upper and lower layers.
| Packet* | Pointer to the packet received. |
Reimplemented in UwStaticRoutingModule.
References addr_type_inet, hdr_uwip::daddr(), ipAddr_, and hdr_uwip::saddr().

|
virtual |
Cross-Layer messages synchronous interpreter.
| ClMessage* | an instance of ClMessage that represent the message received |
References ipAddr_, UWIPClMsgSendAddr::setAddr(), and UWIP_CLMSG_SEND_ADDR.

|
protected |
|
protected |
Flag to enable or disable dirrefent levels of debug.
Referenced by UWIPModule().
|
protected |
IP address of the node.
Referenced by command(), recv(), recvSyncClMsg(), and UWIPModule().
|
staticprotected |
Used to set a default IP address.
Referenced by UWIPModule().