DESERT 3.5.1
|
#include <uwmll-module.h>
Public Member Functions | |
UWMllModule () | |
~UWMllModule () | |
virtual int | crLayCommand (ClMessage *m) |
virtual int | recvAsyncClMsg (ClMessage *m) |
virtual int | recvSyncClMsg (ClMessage *m) |
virtual int | command (int argc, const char *const *argv) |
virtual void | recv (Packet *p) |
virtual void | recv (Packet *p, int idSrc) |
Protected Member Functions | |
virtual void | sendDown (Packet *p) |
virtual void | sendUp (Packet *p) |
virtual int | getDownAddr (int downId=-1) |
virtual int | arpResolve (nsaddr_t dst, Packet *p) |
void | incrArpPktDrop () |
int | getArpPktDropped () |
Protected Attributes | |
UWARPTable * | arptable_ |
vector< nsaddr_t > | netAddr |
int | seqno_ |
int | n_arp_pkt_drop |
int | enable_addr_copy |
Module for ARP-resolve.
Should live between one or more IPModule and one MMacModule NOTE: You should only use one MMacModule below this module, else behavior is undef
Definition at line 67 of file uwmll-module.h.
UWMllModule::UWMllModule | ( | ) |
Constructor.
Definition at line 74 of file uwmll-module.cpp.
UWMllModule::~UWMllModule | ( | ) |
Desctructor.
Definition at line 82 of file uwmll-module.cpp.
|
protectedvirtual |
Resolve MAC address for given dst address.
dst | IP destination address |
p | packet which requested the resolv, will be cached |
Definition at line 221 of file uwmll-module.cpp.
|
virtual |
TCL Command handler.
Definition at line 105 of file uwmll-module.cpp.
|
virtual |
Receive asyncronous commands In Practive only IPModule telling us its IP-address.
m | Pointer to message object |
Definition at line 87 of file uwmll-module.cpp.
|
inlineprotected |
Definition at line 128 of file uwmll-module.h.
|
protectedvirtual |
Retrieve MAC address for lower layer.
downId | id of downward module if> -1, only the module with id downId will be asked, else request is broadcasted |
Definition at line 242 of file uwmll-module.cpp.
|
inlineprotected |
Definition at line 122 of file uwmll-module.h.
|
virtual |
Retrieve packets from other modules.
Definition at line 131 of file uwmll-module.cpp.
|
virtual |
Retrieve packets from other modules This method is used to know which mac-module to send ARP-replies to.
Definition at line 137 of file uwmll-module.cpp.
|
virtual |
Definition at line 93 of file uwmll-module.cpp.
|
virtual |
Definition at line 99 of file uwmll-module.cpp.
|
protectedvirtual |
Handle packet going down.
Definition at line 149 of file uwmll-module.cpp.
|
protectedvirtual |
Handle packet going up.
Definition at line 236 of file uwmll-module.cpp.
|
protected |
Pointer to an arptable.
Definition at line 134 of file uwmll-module.h.
|
protected |
Definition at line 144 of file uwmll-module.h.
|
protected |
Definition at line 142 of file uwmll-module.h.
|
protected |
List of IP address to our upper layers.
Definition at line 137 of file uwmll-module.h.
|
protected |
Link layer sequence number.
Definition at line 140 of file uwmll-module.h.