From 4ea670ff69ad31f53da692212d3d5201063ef837 Mon Sep 17 00:00:00 2001 From: Zoltan Bojthe Date: Mon, 4 Dec 2023 15:08:38 +0100 Subject: [PATCH] RoutingTableRecorder: show routeProtocolData --- src/inet/networklayer/ipv4/RoutingTableRecorder.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/inet/networklayer/ipv4/RoutingTableRecorder.cc b/src/inet/networklayer/ipv4/RoutingTableRecorder.cc index 6b8c7915ae3..a819d84b30a 100644 --- a/src/inet/networklayer/ipv4/RoutingTableRecorder.cc +++ b/src/inet/networklayer/ipv4/RoutingTableRecorder.cc @@ -149,7 +149,8 @@ void RoutingTableRecorder::recordRouteChange(cModule *host, const IRoute *route, // action, eventNo, simtime, moduleId, routerID, dest, dest netmask, nexthop ensureRoutingLogFileOpen(); auto ie = route->getInterface(); - fprintf(routingLogFile, "%s #%" PRId64 " %ss %s %s %s/%d %s %s\n", + const cObject *routeProtocolData = route->getProtocolData(); + fprintf(routingLogFile, "%s #%" PRId64 " %ss %s %s %s/%d %s %s %s\n", tag, getSimulation()->getEventNumber(), SIMTIME_STR(simTime()), @@ -158,7 +159,8 @@ void RoutingTableRecorder::recordRouteChange(cModule *host, const IRoute *route, route->getDestinationAsGeneric().str().c_str(), route->getPrefixLength(), route->getNextHopAsGeneric().str().c_str(), - (ie ? ie->getInterfaceName() : "*")); + (ie ? ie->getInterfaceName() : "*"), + (routeProtocolData ? routeProtocolData->str().c_str() : "")); fflush(routingLogFile); }