Postfix bug 1607 patch; OnOffApplication uses packet sockets too
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "ns3/address.h"
|
||||
#include "ns3/inet-socket-address.h"
|
||||
#include "ns3/inet6-socket-address.h"
|
||||
#include "ns3/packet-socket-address.h"
|
||||
#include "ns3/node.h"
|
||||
#include "ns3/nstime.h"
|
||||
#include "ns3/data-rate.h"
|
||||
@@ -152,7 +153,8 @@ void OnOffApplication::StartApplication () // Called at time specified by Start
|
||||
{
|
||||
m_socket->Bind6 ();
|
||||
}
|
||||
else if (InetSocketAddress::IsMatchingType (m_peer))
|
||||
else if (InetSocketAddress::IsMatchingType (m_peer) ||
|
||||
PacketSocketAddress::IsMatchingType (m_peer))
|
||||
{
|
||||
m_socket->Bind ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user