|
1279 |
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (b), false, "trivial"); |
1284 |
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (b), false, "trivial"); |
1280 |
} |
1285 |
} |
1281 |
|
1286 |
|
1282 |
{ |
|
|
1283 |
// bug 572 |
1284 |
Ptr<Packet> tmp = Create<Packet> (1000); |
1285 |
tmp->AddByteTag (ATestTag<20> ()); |
1286 |
CHECK (tmp, 1, E (20, 0, 1000)); |
1287 |
tmp->AddHeader (ATestHeader<2> ()); |
1288 |
CHECK (tmp, 1, E (20, 2, 1002)); |
1289 |
tmp->RemoveAtStart (1); |
1290 |
CHECK (tmp, 1, E (20, 1, 1001)); |
1291 |
tmp->PeekData (); |
1292 |
CHECK (tmp, 1, E (20, 1, 1001)); |
1293 |
} |
1294 |
|
1295 |
return GetErrorStatus (); |
1287 |
return GetErrorStatus (); |
1296 |
} |
1288 |
} |
1297 |
//----------------------------------------------------------------------------- |
1289 |
//----------------------------------------------------------------------------- |