Skip to content

Commit eeba1cb

Browse files
committed
ipv6, mipv6: cosmetic source cleanup
1 parent b2b4733 commit eeba1cb

11 files changed

Lines changed: 56 additions & 393 deletions

File tree

src/inet/networklayer/icmpv6/Icmpv6.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ void Icmpv6::insertChecksum(ChecksumMode checksumMode, const Ptr<Icmpv6Header>&
442442
break;
443443
}
444444
default:
445-
throw cRuntimeError("Unknown checksum mode");
445+
throw cRuntimeError("Unknown checksum mode %d", (int)checksumMode);
446446
}
447447
}
448448

@@ -464,7 +464,7 @@ bool Icmpv6::verifyChecksum(const Packet *packet)
464464
return checksum == 0 && icmpHeader->isCorrect();
465465
}
466466
default:
467-
throw cRuntimeError("Unknown checksum mode");
467+
throw cRuntimeError("Unknown checksum mode %d", (int)icmpHeader->getChecksumMode());
468468
}
469469
}
470470

src/inet/networklayer/icmpv6/Icmpv6HeaderSerializer.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ void deserializeIpv6NdOptions(Ipv6NdMessage& msg, Ipv6NdOptions& options, Memory
137137
options.appendOption(option);
138138
break;
139139
}
140-
// case IPv6ND_REDIRECTED_HEADER: {
141-
// break;
142-
// }
143140
case IPv6ND_MTU: {
144141
auto option = new Ipv6NdMtu();
145142
option->setReserved(stream.readUint16Be());
@@ -301,7 +298,7 @@ void Icmpv6HeaderSerializer::serialize(MemoryOutputStream& stream, const Ptr<con
301298
}
302299

303300
default:
304-
throw cRuntimeError("Cannot serialize ICMPv6 packet: type %d not supported.", pkt->getType());
301+
throw cRuntimeError("Cannot serialize ICMPv6 packet: type %d not supported", pkt->getType());
305302
}
306303
}
307304

src/inet/networklayer/icmpv6/Ipv6NeighbourDiscovery.cc

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void Ipv6NeighbourDiscovery::handleMessageWhenUp(cMessage *msg)
168168
processArTimeout(msg);
169169
}
170170
else
171-
throw cRuntimeError("Unrecognized Timer"); // stops sim w/ error msg.
171+
throw cRuntimeError("Unrecognized self-message kind %d (%s)", msg->getKind(), msg->getName());
172172
}
173173
else if (auto packet = dynamic_cast<Packet *>(msg)) {
174174
auto protocol = packet->getTag<PacketProtocolTag>()->getProtocol();
@@ -183,7 +183,7 @@ void Ipv6NeighbourDiscovery::handleMessageWhenUp(cMessage *msg)
183183
}
184184
}
185185
else
186-
throw cRuntimeError("Unknown message type received.\n");
186+
throw cRuntimeError("Received message '%s' (%s) with unexpected type", msg->getName(), msg->getClassName());
187187
}
188188

189189
void Ipv6NeighbourDiscovery::processNDMessage(Packet *packet, const Icmpv6Header *icmpv6Header)
@@ -210,7 +210,7 @@ void Ipv6NeighbourDiscovery::processNDMessage(Packet *packet, const Icmpv6Header
210210
break;
211211

212212
default:
213-
throw cRuntimeError("Unrecognized ND message!");
213+
throw cRuntimeError("Unrecognized ND message type %d", (int)icmpv6Header->getType());
214214
}
215215
}
216216

@@ -226,7 +226,6 @@ void Ipv6NeighbourDiscovery::processIpv6Datagram(Packet *packet)
226226
Ipv6NdControlInfo *ctrl = check_and_cast<Ipv6NdControlInfo *>(packet->getControlInfo());
227227
int nextHopIfID = ctrl->getInterfaceId();
228228
Ipv6Address nextHopAddr = ctrl->getNextHop();
229-
// bool fromHL = ctrl->getFromHL();
230229

231230
if (nextHopIfID == -1 || nextHopAddr.isUnspecified()) {
232231
EV_INFO << "Determining Next Hop" << endl;
@@ -316,7 +315,7 @@ void Ipv6NeighbourDiscovery::processIpv6Datagram(Packet *packet)
316315
}
317316
break;
318317
default:
319-
throw cRuntimeError("Unknown Neighbour cache entry state.");
318+
throw cRuntimeError("Unknown neighbour cache entry state %d", (int)nce->reachabilityState);
320319
break;
321320
}
322321
}
@@ -346,7 +345,6 @@ const MacAddress& Ipv6NeighbourDiscovery::resolveNeighbour(const Ipv6Address& ne
346345
Enter_Method("resolveNeighbor(%s,if=%d)", nextHop.str().c_str(), interfaceId);
347346

348347
Neighbour *nce = neighbourCache.lookup(nextHop, interfaceId);
349-
// NetworkInterface *ie = ift->getInterfaceById(interfaceId);
350348

351349
if (!nce || nce->reachabilityState == Ipv6NeighbourCache::INCOMPLETE)
352350
return MacAddress::UNSPECIFIED_ADDRESS;
@@ -379,7 +377,7 @@ void Ipv6NeighbourDiscovery::reachabilityConfirmed(const Ipv6Address& neighbour,
379377

380378
Neighbour *nce = neighbourCache.lookup(neighbour, interfaceId);
381379
if (!nce)
382-
throw cRuntimeError("Model error: not found in cache");
380+
throw cRuntimeError("Model error: neighbour %s (if=%d) not found in cache", neighbour.str().c_str(), interfaceId);
383381

384382
cMessage *msg = nce->nudTimeoutEvent;
385383
if (msg != nullptr) {
@@ -536,7 +534,7 @@ void Ipv6NeighbourDiscovery::processNudTimeout(cMessage *timeoutMsg)
536534
if (nce->numProbesSent == (int)ie->getProtocolData<Ipv6InterfaceData>()->_getMaxUnicastSolicit()) {
537535
EV_DETAIL << "Max number of probes have been sent." << endl;
538536
EV_DETAIL << "Neighbour is Unreachable, removing NCE." << endl;
539-
neighbourCache.remove(nceKey->address, nceKey->interfaceID); // remove nce from cache, cancel and delete timeoutMsg;
537+
neighbourCache.remove(nceKey->address, nceKey->interfaceID);
540538
return;
541539
}
542540

@@ -996,7 +994,7 @@ void Ipv6NeighbourDiscovery::createAndSendRsPacket(NetworkInterface *ie)
996994
myIPv6Address = ie->getProtocolData<Ipv6InterfaceData>()->getLinkLocalAddress(); // so we use the link local address instead
997995

998996
if (ie->getProtocolData<Ipv6InterfaceData>()->isTentativeAddress(myIPv6Address))
999-
myIPv6Address = Ipv6Address::UNSPECIFIED_ADDRESS; // set my Ipv6 address to unspecified.
997+
myIPv6Address = Ipv6Address::UNSPECIFIED_ADDRESS;
1000998

1001999
Ipv6Address destAddr = Ipv6Address::ALL_ROUTERS_2; // all_routers multicast
10021000
auto rs = makeShared<Ipv6RouterSolicitation>();
@@ -1070,7 +1068,6 @@ void Ipv6NeighbourDiscovery::startRouterDiscovery(NetworkInterface *ie)
10701068
a random delay since the interface became (re)enabled (e.g., as part
10711069
of Duplicate Address Detection [ADDRCONF]) there is no need to delay
10721070
again before sending the first Router Solicitation message.*/
1073-
// simtime_t rndInterval = uniform(0, ie->getProtocolData<Ipv6InterfaceData>()->_getMaxRtrSolicitationDelay());
10741071
scheduleAfter(ie->getProtocolData<Ipv6InterfaceData>()->_getRtrSolicitationInterval(), rdTimeoutMsg);
10751072
}
10761073

@@ -1294,7 +1291,7 @@ void Ipv6NeighbourDiscovery::createAndSendRaPacket(const Ipv6Address& destAddr,
12941291
Ipv6InterfaceData::AdvPrefix advPrefix = ie->getProtocolData<Ipv6InterfaceData>()->getAdvPrefix(i);
12951292
auto prefixInfo = new Ipv6NdPrefixInformation();
12961293

1297-
EV_DETAIL << "\n+=+=+=+= Appendign Prefix Info Option to RA +=+=+=+=\n";
1294+
EV_DETAIL << "Appending prefix info option to RA" << endl;
12981295
EV_DETAIL << "Prefix Value: " << advPrefix.prefix << endl;
12991296
EV_DETAIL << "Prefix Length: " << advPrefix.prefixLength << endl;
13001297
EV_DETAIL << "L-Flag: " << advPrefix.advOnLinkFlag << endl;
@@ -1318,11 +1315,10 @@ void Ipv6NeighbourDiscovery::createAndSendRaPacket(const Ipv6Address& destAddr,
13181315
prefixInfo->setAutoAddressConfFlag(advPrefix.advAutonomousFlag);
13191316

13201317
if (rt6->isHomeAgent())
1321-
prefixInfo->setRouterAddressFlag(true); // set the R-bit if the node is a HA
1318+
prefixInfo->setRouterAddressFlag(true);
13221319

13231320
// - In the Preferred Lifetime field: the entry's AdvPreferredLifetime.
13241321
prefixInfo->setPreferredLifetime(SIMTIME_DBL(advPrefix.advPreferredLifetime));
1325-
// Now we pop the prefix info into the RA.
13261322
ra->getOptionsForUpdate().appendOption(prefixInfo);
13271323
ra->addChunkLength(IPv6ND_PREFIX_INFORMATION_OPTION_LENGTH);
13281324
}
@@ -1362,8 +1358,6 @@ void Ipv6NeighbourDiscovery::processRaPacket(Packet *packet, const Ipv6RouterAdv
13621358
processRaForRouterUpdates(packet, ra); // See RFC2461: Section 6.3.4
13631359

13641360
// Possible options
1365-
// MacAddress macAddress = ra->getSourceLinkLayerAddress();
1366-
// uint mtu = ra->getMTU();
13671361
for (size_t i = 0; i < ra->getOptions().getOptionArraySize(); i++) {
13681362
auto option = ra->getOptions().getOption(i);
13691363
if (option->getType() != IPv6ND_PREFIX_INFORMATION)
@@ -1548,7 +1542,6 @@ void Ipv6NeighbourDiscovery::processRaPrefixInfo(const Ipv6RouterAdvertisement *
15481542
<< ra->getOptions().getOptionArraySize() << endl;
15491543
uint prefixLength = prefixInfo.getPrefixLength();
15501544
simtime_t validLifetime = prefixInfo.getValidLifetime();
1551-
// uint preferredLifetime = prefixInfo.getPreferredLifetime();
15521545
Ipv6Address prefix = prefixInfo.getPrefix();
15531546

15541547
// - If the prefix is the link-local prefix, silently ignore the Prefix
@@ -1865,7 +1858,6 @@ void Ipv6NeighbourDiscovery::processNsForTentativeAddress(Packet *packet, const
18651858
{
18661859
// Control Information
18671860
Ipv6Address nsSrcAddr = packet->getTag<L3AddressInd>()->getSrcAddress().toIpv6();
1868-
// Ipv6Address nsDestAddr = nsCtrlInfo->getDestAddr();
18691861

18701862
ASSERT(nsSrcAddr.isUnicast() || nsSrcAddr.isUnspecified());
18711863
// solicitation is processed as described in RFC2462:section 5.4.3
@@ -1891,9 +1883,6 @@ void Ipv6NeighbourDiscovery::processNsForTentativeAddress(Packet *packet, const
18911883

18921884
void Ipv6NeighbourDiscovery::processNsForNonTentativeAddress(Packet *packet, const Ipv6NeighbourSolicitation *ns, NetworkInterface *ie)
18931885
{
1894-
// Neighbour Solicitation Information
1895-
// MacAddress nsMacAddr = ns->getSourceLinkLayerAddress();
1896-
18971886
// target addr is not tentative addr
18981887
// solicitation processed as described in RFC2461:section 7.2.3
18991888
if (packet->getTag<L3AddressInd>()->getSrcAddress().toIpv6().isUnspecified()) {
@@ -1977,7 +1966,7 @@ void Ipv6NeighbourDiscovery::sendSolicitedNa(Packet *packet, const Ipv6Neighbour
19771966
/*If the (NS)Target Address is either an anycast address or a unicast
19781967
address for which the node is providing proxy service, or the Target
19791968
Link-Layer Address option is not included,*/
1980-
// TODOANYCAST will not be implemented here!
1969+
// TODO: anycast target address handling is not implemented
19811970

19821971
MacAddress sourceLinkLayerAddress;
19831972
if (auto sla = check_and_cast_nullable<const Ipv6NdSourceLinkLayerAddress *>(ns->getOptions().findOption(IPv6ND_SOURCE_LINK_LAYER_ADDR_OPTION)))
@@ -2447,8 +2436,6 @@ void Ipv6NeighbourDiscovery::processRaPrefixInfoForAddrAutoConf(const Ipv6NdPref
24472436
simtime_t preferredLifetime = prefixInfo.getPreferredLifetime();
24482437
simtime_t validLifetime = prefixInfo.getValidLifetime();
24492438

2450-
// EV << "/// prefix: " << prefix << std::endl; // CB
2451-
24522439
// RFC 2461: Section 5.5.3
24532440
// First condition tested, the autonomous flag is already set
24542441

@@ -2518,9 +2505,7 @@ void Ipv6NeighbourDiscovery::processRaPrefixInfoForAddrAutoConf(const Ipv6NdPref
25182505
EV_INFO << "Assigning new address to: " << ie->getInterfaceName() << endl;
25192506

25202507
// we are for sure either in the home network or in a new foreign network
2521-
// -> remove CoA
2522-
// CoA = ie->ipv6()->removeCoAAddr();
2523-
// moved code from above to processDADTimeout()
2508+
// -> remove CoA; moved code from above to processDADTimeout()
25242509

25252510
// 27.9.07 - CB
25262511
if (returnedHome) {
@@ -2571,7 +2556,6 @@ void Ipv6NeighbourDiscovery::processRaPrefixInfoForAddrAutoConf(const Ipv6NdPref
25712556
dadGlobalList[ie->getInterfaceId()].validLifetime = validLifetime;
25722557
dadGlobalList[ie->getInterfaceId()].preferredLifetime = preferredLifetime;
25732558
dadGlobalList[ie->getInterfaceId()].addr = newAddr;
2574-
// dadGlobalList[ie->getInterfaceId()].returnedHome = returnedHome;
25752559
dadGlobalList[ie->getInterfaceId()].CoA = CoA;
25762560
}
25772561
}
@@ -2580,10 +2564,6 @@ void Ipv6NeighbourDiscovery::processRaPrefixInfoForAddrAutoConf(const Ipv6NdPref
25802564

25812565
void Ipv6NeighbourDiscovery::routersUnreachabilityDetection(const NetworkInterface *ie)
25822566
{
2583-
// remove all entries from the destination cache for this interface
2584-
// rt6->purgeDestCacheForInterfaceID( ie->interfaceId() );
2585-
// invalidate entries in the destination cache for this interface
2586-
// neighbourCache.invalidateEntriesForInterfaceID( ie->interfaceId() );
25872567
// remove default routes on this interface
25882568
rt6->deleteDefaultRoutes(ie->getInterfaceId());
25892569
rt6->deletePrefixes(ie->getInterfaceId());
@@ -2596,13 +2576,7 @@ void Ipv6NeighbourDiscovery::routersUnreachabilityDetection(const NetworkInterfa
25962576
<< (*it).first.interfaceID << ") to unreachable" << endl;
25972577
++it;
25982578

2599-
// if (rtrLnkAddress.isLinkLocal())
26002579
timeoutDefaultRouter(rtrLnkAddress, ie->getInterfaceId());
2601-
2602-
// reset reachability state of this router
2603-
// Neighbour* nbor = neighbourCache.lookup( (*it).first.address, (*it).first.interfaceID );
2604-
// nbor->reachabilityState = Ipv6NeighbourCache::STALE;
2605-
// initiateNeighbourUnreachabilityDetection(nbor);
26062580
}
26072581
else
26082582
++it;
@@ -2611,7 +2585,6 @@ void Ipv6NeighbourDiscovery::routersUnreachabilityDetection(const NetworkInterfa
26112585

26122586
void Ipv6NeighbourDiscovery::invalidateNeigbourCache()
26132587
{
2614-
// Enter_Method("Invalidating Neigbour Cache Entries");
26152588
neighbourCache.invalidateAllEntries();
26162589
}
26172590

src/inet/networklayer/icmpv6/Mldv1.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void Mldv1::handleMessageWhenUp(cMessage *msg)
196196
processMldMessage(packet);
197197
}
198198
else
199-
throw cRuntimeError("Unknown message type received.");
199+
throw cRuntimeError("Received packet '%s' (%s) with unexpected protocol", packet->getName(), packet->getClassName());
200200
}
201201
else if (auto indication = dynamic_cast<Indication *>(msg)) {
202202
// The IPv6 layer reports an ICMPv6 error for an MLD message we sent;

src/inet/networklayer/icmpv6/Mldv2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void Mldv2::handleMessageWhenUp(cMessage *msg)
371371
if (packet->getTag<PacketProtocolTag>()->getProtocol() == &Protocol::mld)
372372
processMldMessage(packet);
373373
else
374-
throw cRuntimeError("Mldv2: Unknown message type received.");
374+
throw cRuntimeError("Received packet '%s' (%s) with unexpected protocol", packet->getName(), packet->getClassName());
375375
}
376376
else if (auto indication = dynamic_cast<Indication *>(msg)) {
377377
// The IPv6 layer reports an ICMPv6 error for an MLD message we sent; discard it.

src/inet/networklayer/ipv6/Ipv6.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ void Ipv6::routePacket(Packet *packet, const NetworkInterface *destIE, const Net
522522
if (interfaceId == -1)
523523
if (!determineOutputInterface(destAddress, nextHop, interfaceId, packet, fromHL))
524524
// no interface found; sent to ND or to ICMP for error processing
525-
// throw cRuntimeError("No interface found!");//return;
526525
return;
527526
// don't raise error if sent to ND or ICMP!
528527

@@ -866,7 +865,7 @@ void Ipv6::localDeliverFinish(Packet *packet)
866865
EV_INFO << "Transport layer gate not connected - dropping packet!\n";
867866
sendIcmpError(origPacket, ICMPv6_PARAMETER_PROBLEM, UNRECOGNIZED_NEXT_HDR_TYPE);
868867
origPacket = nullptr; // for not delete
869-
delete packet; // delete decapsulated packet
868+
delete packet;
870869
}
871870
else {
872871
// the packet was delivered to one or more sockets above (a copy per socket) and

src/inet/networklayer/ipv6/Ipv6InterfaceData.cc

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Ipv6InterfaceData::~Ipv6InterfaceData()
233233

234234
std::string Ipv6InterfaceData::str() const
235235
{
236-
// FIXME FIXME FIXME FIXME info() should never print a newline
236+
// FIXME info() should never print a newline
237237
std::ostringstream os;
238238
os << "Ipv6:{" << endl;
239239
for (int i = 0; i < getNumAddresses(); i++) {
@@ -273,22 +273,12 @@ std::string Ipv6InterfaceData::str() const
273273
// uncomment the following as needed!
274274
os << "\tNode:";
275275
os << " dupAddrDetectTrans=" << nodeVars.dupAddrDetectTransmits;
276-
// os << " curHopLimit=" << hostVars.curHopLimit;
277-
// os << " retransTimer=" << hostVars.retransTimer;
278-
// os << " baseReachableTime=" << hostVars.baseReachableTime;
279276
os << " reachableTime=" << hostVars.reachableTime << endl;
280277

281278
if (rtrVars.advSendAdvertisements) {
282279
os << "\tRouter:";
283280
os << " maxRtrAdvInt=" << rtrVars.maxRtrAdvInterval;
284281
os << " minRtrAdvInt=" << rtrVars.minRtrAdvInterval << endl;
285-
// os << " advManagedFlag=" << rtrVars.advManagedFlag;
286-
// os << " advOtherFlag=" << rtrVars.advOtherFlag;
287-
// os << " advLinkMTU=" << rtrVars.advLinkMTU;
288-
// os << " advReachableTime=" << rtrVars.advReachableTime;
289-
// os << " advRetransTimer=" << rtrVars.advRetransTimer;
290-
// os << " advCurHopLimit=" << rtrVars.advCurHopLimit;
291-
// os << " advDefaultLifetime=" << rtrVars.advDefaultLifetime;
292282
}
293283

294284
os << " }" << endl;
@@ -568,9 +558,9 @@ void Ipv6InterfaceData::changeMulticastGroupMembership(Ipv6Address multicastAddr
568558
McastSourceFilterMode newFilterMode, const Ipv6AddressVector& newSourceList)
569559
{
570560
if (ownerp && !ownerp->isMulticast())
571-
throw cRuntimeError("Ipv6InterfaceData::changeMulticastGroupMembership(): multicast interface expected, received %s.", ownerp->getInterfaceFullPath().c_str());
561+
throw cRuntimeError("Ipv6InterfaceData::changeMulticastGroupMembership(): multicast interface expected, received %s", ownerp->getInterfaceFullPath().c_str());
572562
if (!multicastAddress.isMulticast())
573-
throw cRuntimeError("Ipv6InterfaceData::changeMulticastGroupMembership(): multicast address expected, received %s.", multicastAddress.str().c_str());
563+
throw cRuntimeError("Ipv6InterfaceData::changeMulticastGroupMembership(): multicast address expected, received %s", multicastAddress.str().c_str());
574564

575565
HostMulticastGroupData *entry = findHostGroupData(multicastAddress);
576566
if (!entry) {
@@ -584,7 +574,7 @@ void Ipv6InterfaceData::changeMulticastGroupMembership(Ipv6Address multicastAddr
584574
for (const auto& elem : oldSourceList) {
585575
auto count = counts->find(elem);
586576
if (count == counts->end())
587-
throw cRuntimeError("Inconsistent reference counts in Ipv6InterfaceData.");
577+
throw cRuntimeError("Inconsistent reference counts in Ipv6InterfaceData");
588578
else if (count->second == 1)
589579
counts->erase(count);
590580
else
@@ -691,7 +681,7 @@ bool Ipv6InterfaceData::hasMulticastListener(const Ipv6Address& multicastAddress
691681
void Ipv6InterfaceData::addMulticastListener(const Ipv6Address& multicastAddress)
692682
{
693683
if (!multicastAddress.isMulticast())
694-
throw cRuntimeError("Ipv6InterfaceData::addMulticastListener(): multicast address expected, received %s.", multicastAddress.str().c_str());
684+
throw cRuntimeError("Ipv6InterfaceData::addMulticastListener(): multicast address expected, received %s", multicastAddress.str().c_str());
695685

696686
RouterMulticastGroupData *groupData = findRouterGroupData(multicastAddress);
697687
if (!groupData) {
@@ -711,7 +701,7 @@ void Ipv6InterfaceData::addMulticastListener(const Ipv6Address& multicastAddress
711701
void Ipv6InterfaceData::addMulticastListener(const Ipv6Address& multicastAddress, const Ipv6Address& sourceAddress)
712702
{
713703
if (!multicastAddress.isMulticast())
714-
throw cRuntimeError("Ipv6InterfaceData::addMulticastListener(): multicast address expected, received %s.", multicastAddress.str().c_str());
704+
throw cRuntimeError("Ipv6InterfaceData::addMulticastListener(): multicast address expected, received %s", multicastAddress.str().c_str());
715705

716706
RouterMulticastGroupData *groupData = findRouterGroupData(multicastAddress);
717707
if (!groupData) {
@@ -756,7 +746,7 @@ void Ipv6InterfaceData::removeMulticastListener(const Ipv6Address& multicastAddr
756746
void Ipv6InterfaceData::setMulticastListeners(Ipv6Address multicastAddress, McastSourceFilterMode filterMode, const Ipv6AddressVector& sourceList)
757747
{
758748
if (!multicastAddress.isMulticast())
759-
throw cRuntimeError("Ipv6InterfaceData::setMulticastListeners(): multicast address expected, received %s.", multicastAddress.str().c_str());
749+
throw cRuntimeError("Ipv6InterfaceData::setMulticastListeners(): multicast address expected, received %s", multicastAddress.str().c_str());
760750

761751
RouterMulticastGroupData *groupData = findRouterGroupData(multicastAddress);
762752
if (!groupData) {

src/inet/networklayer/ipv6/Ipv6InterfaceData.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,6 @@ class INET_API Ipv6InterfaceData : public InterfaceProtocolData
421421
* Default: 3 * MaxRtrAdvInterval
422422
*/
423423
simtime_t advDefaultLifetime; // integer seconds in ND rfc but for MIPv6 really need better granularity
424-
// bool fastRA;
425-
// uint maxFastRAS;
426-
// mutable uint fastRACounter;
427424

428425
// These are either learned from routers or configured manually(router)
429426
AdvPrefixList advPrefixList;

0 commit comments

Comments
 (0)