openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/tcpsrv.c
static rsRetVal configureTCPListen(tcpsrv_t* pThis, uchar* pszPort,
                                   int bSuppOctetFram, uchar* pszAddr)
{
    int i;
    uchar* pPort = pszPort;
    DEFiRet;

    assert(pszPort != NULL);
    ISOBJ_TYPE_assert(pThis, tcpsrv);

    /* extract port */
    i = 0;
    while (isdigit((int)*pPort))
    {
        i = i * 10 + *pPort++ - '0';
    }

    if (i >= 0 && i <= 65535)
    {
        CHKiRet(addNewLstnPort(pThis, pszPort, bSuppOctetFram, pszAddr));
    }
    else
    {
        LogError(0, NO_ERRCODE, "Invalid TCP listen port %s - ignored.\n",
                 pszPort);
    }

finalize_it:
    RETiRet;
}
/* configure TCP listener settings.
 * Note: pszPort is handed over to us - the caller MUST NOT free it!
 * rgerhards, 2008-03-20
 */
configure TCP listener settings.
Note: pszPort is handed over to us - the caller MUST NOT free it.
configure TCP listener settings . Note : pszPort is handed over to us - the caller MUST NOT free it .
static rsRetVal configureTCPListen(tcpsrv_t* pThis, uchar* pszPort,
                                   int bSuppOctetFram, uchar* pszAddr)
{
    int i;
    uchar* pPort = pszPort;
    DEFiRet;
    assert(pszPort != NULL);
    ISOBJ_TYPE_assert(pThis, tcpsrv);
    i = 0;
    while (isdigit((int)*pPort))
    {
        i = i * 10 + *pPort++ - '0';
    }
    if (i >= 0 && i <= 65535)
    {
        CHKiRet(addNewLstnPort(pThis, pszPort, bSuppOctetFram, pszAddr));
    }
    else
    {
        LogError(0, NO_ERRCODE, "Invalid TCP listen port %s - ignored.\n",
                 pszPort);
    }
finalize_it:
    RETiRet;
}
static rsRetVal configureTCPListen ( tcpsrv_t * pThis , uchar * pszPort , int bSuppOctetFram , uchar * pszAddr ) { int i ; uchar * pPort = pszPort ; DEFiRet ; assert ( pszPort != NULL ) ; ISOBJ_TYPE_assert ( pThis , tcpsrv ) ; i = 0 ; while ( isdigit ( ( int ) * pPort ) ) { i = i * 10 + * pPort ++ - ' ' ; } if ( i >= 0 && i <= 65535 ) { CHKiRet ( addNewLstnPort ( pThis , pszPort , bSuppOctetFram , pszAddr ) ) ; } else { LogError ( 0 , NO_ERRCODE , " \n " , pszPort ) ; } finalize_it : RETiRet ; }
configure TCP listener settings.
configure TCP listener settings .
/* extract port */