merge with head

This commit is contained in:
Mathieu Lacage
2010-07-19 19:36:39 +02:00
3 changed files with 4 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ int main (int argc, char *argv[])
Ptr<Socket> source = Socket::CreateSocket (c.Get (1), tid);
InetSocketAddress remote = InetSocketAddress (Ipv4Address ("255.255.255.255"), 80);
source->SetAllowBroadcast (true);
source->Connect (remote);
// Tracing

View File

@@ -190,6 +190,7 @@ int main (int argc, char *argv[])
Ptr<Socket> source = Socket::CreateSocket (c.Get (1), tid);
InetSocketAddress remote = InetSocketAddress (Ipv4Address ("255.255.255.255"), 80);
source->SetAllowBroadcast (true);
source->Connect (remote);
// Tracing

View File

@@ -231,12 +231,14 @@ int main (int argc, char *argv[])
Ptr<Socket> source = Socket::CreateSocket (c.Get (1), tid);
InetSocketAddress remote = InetSocketAddress (Ipv4Address ("255.255.255.255"), 80);
source->SetAllowBroadcast (true);
source->Connect (remote);
// Interferer will send to a different port; we will not see a
// "Received packet" message
Ptr<Socket> interferer = Socket::CreateSocket (c.Get (2), tid);
InetSocketAddress interferingAddr = InetSocketAddress (Ipv4Address ("255.255.255.255"), 49000);
interferer->SetAllowBroadcast (true);
interferer->Connect (interferingAddr);
// Tracing