From ac2923f9d21c5cc48356c2cda05dfc7fc7e3a8a8 Mon Sep 17 00:00:00 2001 From: Levente Meszaros Date: Wed, 7 Feb 2024 10:11:36 +0100 Subject: [PATCH] Ipv4RoutingTable: Removed deleting interface specific routes when an interface goes down. The routes must be deleted by the owner which originally added them to the routing table. If the routes were added by a routing protocol, it is up to the routing protocol to delete them. --- src/inet/networklayer/ipv4/Ipv4RoutingTable.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/inet/networklayer/ipv4/Ipv4RoutingTable.cc b/src/inet/networklayer/ipv4/Ipv4RoutingTable.cc index 0a3db01032e..bd6190a4ca2 100644 --- a/src/inet/networklayer/ipv4/Ipv4RoutingTable.cc +++ b/src/inet/networklayer/ipv4/Ipv4RoutingTable.cc @@ -175,10 +175,7 @@ void Ipv4RoutingTable::receiveSignal(cComponent *source, simsignal_t signalID, c const auto *ieChangeDetails = check_and_cast(obj); auto fieldId = ieChangeDetails->getFieldId(); if (fieldId == NetworkInterface::F_STATE || fieldId == NetworkInterface::F_CARRIER) { - const auto *entry = ieChangeDetails->getNetworkInterface(); updateNetmaskRoutes(); - if (!entry->isUp() || !entry->hasCarrier()) - deleteInterfaceRoutes(entry); invalidateCache(); } }