examples/mixed-wireless.cc
changeset 4264 9d2e96c4e6e4
parent 4037 a8f42518c058
child 4375 db81fdcb06e7
equal deleted inserted replaced
4263:fec2f830d015 4264:9d2e96c4e6e4
   386       YansWifiPhyHelper::EnableAsciiAll (ascii);
   386       YansWifiPhyHelper::EnableAsciiAll (ascii);
   387       CsmaHelper::EnableAsciiAll (ascii);
   387       CsmaHelper::EnableAsciiAll (ascii);
   388       InternetStackHelper::EnableAsciiAll (ascii);
   388       InternetStackHelper::EnableAsciiAll (ascii);
   389 
   389 
   390       // Let's do a pcap trace on the application source and sink, ifIndex 0
   390       // Let's do a pcap trace on the application source and sink, ifIndex 0
   391       CsmaHelper::EnablePcap ("mixed-wireless", appSource->GetId (), 0);
   391       // Csma captures in non-promiscuous mode
       
   392       CsmaHelper::EnablePcap ("mixed-wireless", appSource->GetId (), 0, false);
   392       YansWifiPhyHelper::EnablePcap ("mixed-wireless", appSink->GetId (), 0);
   393       YansWifiPhyHelper::EnablePcap ("mixed-wireless", appSink->GetId (), 0);
   393       YansWifiPhyHelper::EnablePcap ("mixed-wireless", 9, 2);
   394       YansWifiPhyHelper::EnablePcap ("mixed-wireless", 9, 2);
   394       YansWifiPhyHelper::EnablePcap ("mixed-wireless", 9, 0);
   395       YansWifiPhyHelper::EnablePcap ("mixed-wireless", 9, 0);
   395     }
   396     }
   396 
   397