53 vector.AddInformationElement(meshId);
57 vector.AddInformationElement(config);
61 vector.AddInformationElement(report);
65 peerMan1->SetPeerOpen(1);
67 peerMan2->SetPeerConfirm(1, 2);
70 vector.AddInformationElement(peerMan1);
71 vector.AddInformationElement(peerMan2);
72 vector.AddInformationElement(peerMan3);
76 beaconTiming->AddNeighboursTimingElementUnit(1,
Seconds(1),
Seconds(4));
77 beaconTiming->AddNeighboursTimingElementUnit(2,
Seconds(2),
Seconds(3));
78 beaconTiming->AddNeighboursTimingElementUnit(3,
Seconds(3),
Seconds(2));
79 beaconTiming->AddNeighboursTimingElementUnit(4,
Seconds(4),
Seconds(1));
80 vector.AddInformationElement(beaconTiming);
89 rann->SetOriginatorAddress(
Mac48Address(
"11:22:33:44:55:66"));
90 rann->SetDestSeqNumber(5);
92 rann->IncrementMetric(2);
94 vector.AddInformationElement(rann);
101 preq->SetOriginatorAddress(
Mac48Address(
"11:22:33:44:55:66"));
102 preq->SetOriginatorSeqNumber(3);
103 preq->SetLifetime(4);
104 preq->AddDestinationAddressElement(
false,
false,
Mac48Address(
"11:11:11:11:11:11"), 5);
105 preq->AddDestinationAddressElement(
false,
false,
Mac48Address(
"22:22:22:22:22:22"), 6);
106 vector.AddInformationElement(preq);
111 prep->SetHopcount(11);
113 prep->SetDestinationAddress(
Mac48Address(
"11:22:33:44:55:66"));
114 prep->SetDestinationSeqNumber(123);
115 prep->SetLifetime(5000);
116 prep->SetMetric(4321);
117 prep->SetOriginatorAddress(
Mac48Address(
"33:00:22:00:11:00"));
118 prep->SetOriginatorSeqNumber(666);
119 vector.AddInformationElement(prep);
126 perr->AddAddressUnit(dest);
129 perr->AddAddressUnit(dest);
132 perr->AddAddressUnit(dest);
133 vector.AddInformationElement(perr);
136 packet->AddHeader(
vector);
139 packet->RemoveHeader(resultVector, size);
142 "Roundtrip serialization of all known information elements works");
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.