OMNET++ INET MANET TUTORIAL is framework, which is used for simulating wireless communications.
INETMANET modules:
- IP support of broadcast packet.
- Support for multi radio interfaces.
- The fragmentation model really fragment the packets.
- Channel with programmable failure and recovery events.
- Battery model.
- Virtual Ethernet under wireless ad-hoc.
- Traci integration.
- WFQ support.
- Global ARP, the ARP module know all the address.
Application module in INETMANET:
In INETMANET only one protocol is used in application module.
- DHCP
Download Sample Source Code for INET MANET:
[code lang="js"]
DSRPkt& DSRPkt::operator=(const DSRPkt& m)
{
if (this==&m) return *this;
NetwPkt::operator=(m);
IPDatagram::operator=(m);
encap_protocol=m.encap_protocol;
previous=m.previous;
next = m.next;
struct dsr_opt_hdr *opth;
opth = m.options;
int dsr_opts_len = opth->p_len + DSR_OPT_HDR_LEN;
if (options)
{
delete [] options;
options=NULL;
}
options = (struct dsr_opt_hdr *) new char[dsr_opts_len];
memcpy ((char*)options,(char*)m.options, dsr_opts_len);
if (costVectorSize>0)
{
delete [] costVector;
costVector=NULL;
}
costVectorSize = m.costVectorSize;
if (m.costVectorSize>0)
{
costVector = new EtxCost[m.costVectorSize];
memcpy ((char*)costVector,(char*)m.costVector, m.costVectorSize*sizeof (EtxCost));
}
return *this;
}
[/code]

