|
|
|
|
32 |
#include "ns3/error-model.h" |
|
|
|
|
128 |
// Now, let's use the ListErrorModel and explicitly force a loss |
| 129 |
std::list<uint32_t> sampleList; |
| 130 |
sampleList.push_back (1); |
| 131 |
// This time, we'll explicitly create the error model we want |
| 132 |
Ptr<ListErrorModel> pem = CreateObject<ListErrorModel> (); |
| 133 |
pem->SetList (sampleList); |
| 134 |
d.Get (1)->SetAttribute ("RxErrorModel", PointerValue (pem)); |
| 135 |
|