Postfix bug 1607 patch; OnOffApplication uses packet sockets too
authorTom Henderson <tomh@tomh.org>
Sun, 24 Mar 2013 16:18:56 -0700
changeset 9269 6cb465479415
parent 9268 21270128f7b6
child 9270 58b23c49c456
Postfix bug 1607 patch; OnOffApplication uses packet sockets too
src/applications/model/onoff-application.cc
--- a/src/applications/model/onoff-application.cc	Sat Mar 23 18:58:03 2013 +0100
+++ b/src/applications/model/onoff-application.cc	Sun Mar 24 16:18:56 2013 -0700
@@ -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 @@
         {
           m_socket->Bind6 ();
         }
-      else if (InetSocketAddress::IsMatchingType (m_peer))
+      else if (InetSocketAddress::IsMatchingType (m_peer) ||
+               PacketSocketAddress::IsMatchingType (m_peer))
         {
           m_socket->Bind ();
         }