Fix MinGW build.
--- a/src/routing/aodv/aodv-rtable.cc Fri Dec 04 16:15:59 2009 +0100
+++ b/src/routing/aodv/aodv-rtable.cc Mon Dec 07 11:14:58 2009 +0100
@@ -41,8 +41,8 @@
The Routing Table
*/
-RoutingTableEntry::RoutingTableEntry (Ptr<NetDevice> dev, Ipv4Address dst, bool vSeqNo, u_int32_t seqNo,
- Ipv4InterfaceAddress iface, u_int16_t hops, Ipv4Address nextHop, Time lifetime) :
+RoutingTableEntry::RoutingTableEntry (Ptr<NetDevice> dev, Ipv4Address dst, bool vSeqNo, uint32_t seqNo,
+ Ipv4InterfaceAddress iface, uint16_t hops, Ipv4Address nextHop, Time lifetime) :
m_ackTimer (Timer::CANCEL_ON_DESTROY),
m_validSeqNo (vSeqNo), m_seqNo (seqNo), m_hops (hops),
m_lifeTime (lifetime + Simulator::Now ()), m_iface (iface), m_flag (VALID),
--- a/src/routing/aodv/aodv-rtable.h Fri Dec 04 16:15:59 2009 +0100
+++ b/src/routing/aodv/aodv-rtable.h Mon Dec 07 11:14:58 2009 +0100
@@ -28,6 +28,7 @@
#ifndef AODV_RTABLE_H
#define AODV_RTABLE_H
+#include <stdint.h>
#include <cassert>
#include <map>
#include <sys/types.h>
@@ -58,8 +59,8 @@
{
public:
/// c-to
- RoutingTableEntry (Ptr<NetDevice> dev = 0,Ipv4Address dst = Ipv4Address(), bool vSeqNo = false, u_int32_t m_seqNo = 0,
- Ipv4InterfaceAddress iface = Ipv4InterfaceAddress(), u_int16_t hops = 0,
+ RoutingTableEntry (Ptr<NetDevice> dev = 0,Ipv4Address dst = Ipv4Address(), bool vSeqNo = false, uint32_t m_seqNo = 0,
+ Ipv4InterfaceAddress iface = Ipv4InterfaceAddress(), uint16_t hops = 0,
Ipv4Address nextHop = Ipv4Address(), Time lifetime = Simulator::Now());
~RoutingTableEntry ();