Bug 2195 - Udp[*]Client can't send packets to broadcast address

This commit is contained in:
Tommaso Pecorella
2015-10-19 22:04:11 +02:00
parent 9c5e9b5cf5
commit b46c6eef97
4 changed files with 4 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ Bugs fixed
- Bug 1954 - Serialized size of wifi-net-device differ for TX and RX trace
- Bug 2003 - Missing DSSS short PLCP preamble
- Bug 2183 - LiIonEnergySourceHelper is not in the energy wscript
- Bug 2195 - Udp[*]Client can't send packets to broadcast address
Known issues
------------

View File

@@ -139,6 +139,7 @@ UdpClient::StartApplication (void)
}
m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
m_socket->SetAllowBroadcast (true);
m_sendEvent = Simulator::Schedule (Seconds (0.0), &UdpClient::Send, this);
}

View File

@@ -147,7 +147,7 @@ UdpEchoClient::StartApplication (void)
}
m_socket->SetRecvCallback (MakeCallback (&UdpEchoClient::HandleRead, this));
m_socket->SetAllowBroadcast (true);
ScheduleTransmit (Seconds (0.));
}

View File

@@ -262,6 +262,7 @@ UdpTraceClient::StartApplication (void)
}
}
m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
m_socket->SetAllowBroadcast (true);
m_sendEvent = Simulator::Schedule (Seconds (0.0), &UdpTraceClient::Send, this);
}