Fix regression tests after bug 943 changes

This commit is contained in:
Gustavo J. A. M. Carneiro
2010-07-12 11:45:15 +01:00
parent 36fdbf4c1a
commit a0a543e663
2 changed files with 2 additions and 1 deletions

View File

@@ -260,6 +260,7 @@ UdpSocketImplTest::DoRun (void)
Ptr<SocketFactory> txSocketFactory = txNode->GetObject<UdpSocketFactory> ();
Ptr<Socket> txSocket = txSocketFactory->CreateSocket ();
txSocket->SetAllowBroadcast (true);
// ------ Now the tests ------------

View File

@@ -293,7 +293,7 @@ void RoutingProtocol::DoStart ()
Ptr<Socket> socket = Socket::CreateSocket (GetObject<Node> (),
UdpSocketFactory::GetTypeId());
socket->SetAllowBroadcast (true);
InetSocketAddress inetAddr (addr.GetSubnetDirectedBroadcast (m_ipv4->GetAddress (i, 0).GetMask ()), OLSR_PORT_NUMBER);
InetSocketAddress inetAddr (m_ipv4->GetAddress (i, 0).GetLocal (), OLSR_PORT_NUMBER);
socket->SetRecvCallback (MakeCallback (&RoutingProtocol::RecvOlsr, this));
if (socket->Bind (inetAddr))
{