@@ -555,17 +555,11 @@ _FIB_Command(Athena *athena, CCNxInterest *interest, PARCBitVector *ingress)
555
555
}
556
556
557
557
if (result == true) {
558
- if (prefixName ) {
559
- char * routePrefix = ccnxName_ToString (prefixName );
560
- const char * linkIdName = athenaTransportLinkAdapter_LinkIdToName (athena -> athenaTransportLinkAdapter , linkId );
561
- responseMessage = _create_response (athena , ccnxName , "%s route %s -> %s" , command , routePrefix , linkIdName );
562
- athenaInterestControl_LogConfigurationChange (athena , ccnxName , "%s %s" , routePrefix , linkIdName );
563
- parcMemory_Deallocate (& routePrefix );
564
- } else {
565
- const char * linkIdName = athenaTransportLinkAdapter_LinkIdToName (athena -> athenaTransportLinkAdapter , linkId );
566
- responseMessage = _create_response (athena , ccnxName , "%s route <empty> -> %s" , command , linkIdName );
567
- athenaInterestControl_LogConfigurationChange (athena , ccnxName , "<empty> %s" , linkIdName );
568
- }
558
+ char * routePrefix = ccnxName_ToString (prefixName );
559
+ const char * linkIdName = athenaTransportLinkAdapter_LinkIdToName (athena -> athenaTransportLinkAdapter , parcBitVector_NextBitSet (linkVector , 0 ));
560
+ responseMessage = _create_response (athena , ccnxName , "%s route %s -> %s" , command , routePrefix , linkIdName );
561
+ athenaInterestControl_LogConfigurationChange (athena , ccnxName , "%s %s" , routePrefix , linkIdName );
562
+ parcMemory_Deallocate (& routePrefix );
569
563
} else {
570
564
responseMessage = _create_response (athena , ccnxName , "%s failed" , command );
571
565
}
0 commit comments