Public Member Functions

AddressingInterface Class Reference
[netwLayer - network layer modulesbaseModules - base module classes of MiXiM]

Interface for modules which assign L2 and L3 addresses for modules. More...

#include <AddressingInterface.h>

Inherited by ArpHost, and BaseArp.

List of all members.

Public Member Functions

virtual int myMacAddr (cModule *mac)=0
 Returns the L2 address for the passed mac.
virtual int myNetwAddr (cModule *netw)=0
 Returns the L3 address for the passed net.

Detailed Description

Interface for modules which assign L2 and L3 addresses for modules.

This interface is implemented by ARP modules which rely on a certain addressing scheme to work.

See also:
ArpHost for an example which demands the module's host's index as L2 and L3 address to be able to provide a simplified ARP which is useful for debugging purposes.
BaseARP
ArpHost
Author:
Karl Wessel

Definition at line 30 of file AddressingInterface.h.


The documentation for this class was generated from the following file: