SetAllowBroadcast(true) addition made to wifi-simple-infra.cc and wifi-simple-interference.cc

This commit is contained in:
Gilaras Drakeson committed 2010-07-19 23:15:42 +05:30
1 parent b5c5f394c2
commit 6190f34d6d
2 files changed
+3

No files matched your search

+1
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
@@ -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