Postfix bug 1607 patch; OnOffApplication uses packet sockets too

This commit is contained in:
Tom Henderson
2013-03-24 16:18:56 -07:00
parent 0d14fd57b6
commit e2e83a7090

View File

@@ -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 ();
}