ns-allinone-2.35/sctp/sctp-cmt.cc
char* SctpCMTAgent::PrintDestStatus(SctpDest_S* spDest)
{
  switch(spDest->eStatus)
    {
    case SCTP_DEST_STATUS_ACTIVE:
      return "ACTIVE";
    case SCTP_DEST_STATUS_INACTIVE:
      return "INACTIVE";
    case SCTP_DEST_STATUS_POSSIBLY_FAILED:
      return "PF";
    case SCTP_DEST_STATUS_UNCONFIRMED:
      return "UNCONFIRMED";
    default:
      return "UNKNOWN";
    }
}
/* New CMT function:
 * Function returns dest status as string for printing
 */
New CMT function:
Function returns dest status as string for printing
New CMT function : Function returns dest status as string for printing
char* SctpCMTAgent::PrintDestStatus(SctpDest_S* spDest)
{
  switch(spDest->eStatus)
    {
    case SCTP_DEST_STATUS_ACTIVE:
      return "ACTIVE";
    case SCTP_DEST_STATUS_INACTIVE:
      return "INACTIVE";
    case SCTP_DEST_STATUS_POSSIBLY_FAILED:
      return "PF";
    case SCTP_DEST_STATUS_UNCONFIRMED:
      return "UNCONFIRMED";
    default:
      return "UNKNOWN";
    }
}
char * SctpCMTAgent :: PrintDestStatus ( SctpDest_S * spDest ) { switch ( spDest -> eStatus ) { case SCTP_DEST_STATUS_ACTIVE : return " " ; case SCTP_DEST_STATUS_INACTIVE : return " " ; case SCTP_DEST_STATUS_POSSIBLY_FAILED : return " " ; case SCTP_DEST_STATUS_UNCONFIRMED : return " " ; default : return " " ; } }
New CMT function:
 Function returns dest status as string for printing
New CMT function : Function returns dest status as string for printing