⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ospf_mib_helper_show.c

📁 vxworks下ospf协议栈
💻 C
📖 第 1 页 / 共 5 页
字号:
            (int)pNbr->ospfNbrState);    printf("ospfNbrEvents.%i.%i.%i.%i.%ld [integer] %ld\n",            ipIndex[0], ipIndex[1], ipIndex[2], ipIndex[3],            pNbr->ospfNbrAddressLessIndex, pNbr->ospfNbrEvents);    printf("ospfNbrLsRetransQLen.%i.%i.%i.%i.%ld [integer] %ld\n",            ipIndex[0], ipIndex[1], ipIndex[2], ipIndex[3],            pNbr->ospfNbrAddressLessIndex, pNbr->ospfNbrLsRetransQLen);    printf("ospfNbmaNbrStatus.%i.%i.%i.%i.%ld [integer] %s(%i)\n",            ipIndex[0], ipIndex[1], ipIndex[2], ipIndex[3],            pNbr->ospfNbrAddressLessIndex, rowStatus[pNbr->ospfNbmaNbrStatus],            (int)pNbr->ospfNbmaNbrStatus);    printf("ospfNbmaNbrPermanence.%i.%i.%i.%i.%ld [integer] %s(%i)\n",            ipIndex[0], ipIndex[1], ipIndex[2], ipIndex[3],            pNbr->ospfNbrAddressLessIndex, permanence[pNbr->ospfNbmaNbrPermanence],            (int)pNbr->ospfNbmaNbrPermanence);    printf("ospfNbrHelloSuppressed.%i.%i.%i.%i.%ld [integer] %s(%i)\n",            ipIndex[0], ipIndex[1], ipIndex[2], ipIndex[3],            pNbr->ospfNbrAddressLessIndex, trueValue[pNbr->ospfNbrHelloSuppressed],            pNbr->ospfNbrHelloSuppressed);    printf("\n");    return;}/***************************************************************************************** ospfMapiNbrShow - show routine for ospfNbrTable** This routine displays all neighbor instances found in the ospfNbrTable for* debugging and diagnostic purposes.** RETURNS: OK or ERROR** ERRNO: N/A*/STATUS ospfMapiNbrShow( void ){    /* make sure the facility is properly initialized */    OSPF_MAPI_SHOW_INIT_CHECK();    semTake( thisMapi->semMapiMutex, WAIT_FOREVER );    avlTreePrint( &thisMapi->ospfNbrAvl.pOspfAvlRoot, ospfMapiNbrPrint );    semGive( thisMapi->semMapiMutex );    return OK;}/***************************************************************************************** ospfMapiVirtNbrPrint - debug print routine for ospfMapiVirtNbrShow.** This routine is invoke by ospfMapiVirtNbrShow from the AVL Tree walk routine.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfMapiVirtNbrPrint( void *pNode ){    uchar_t             ipIndex1[4];    uchar_t             ipIndex2[4];    uchar_t             ipStr[4];    mApiOspfVirtNbr_t   *pVirtNbr;    pVirtNbr = (mApiOspfVirtNbr_t *)pNode;    if ( pVirtNbr == NULL )        return;    ospf_mApi_ipAddr2OctetString( pVirtNbr->ospfVirtNbrArea, ipIndex1);    ospf_mApi_ipAddr2OctetString( pVirtNbr->ospfVirtNbrRtrId, ipIndex2 );    printf("ospfVirtNbrArea.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3]);    printf("ospfVirtNbrRtrId.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3]);    ospf_mApi_ipAddr2OctetString( pVirtNbr->ospfVirtNbrIpAddr, ipStr );    printf("ospfVirtNbrIpAddr.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            ipStr[0], ipStr[1], ipStr[2], ipStr[3]);    printf("ospfVirtNbrOptions.%i.%i.%i.%i.%i.%i.%i.%i [integer] %ld\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            pVirtNbr->ospfVirtNbrOptions);    printf("ospfVirtNbrState.%i.%i.%i.%i.%i.%i.%i.%i [integer] %s(%i)\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            nbrState[pVirtNbr->ospfVirtNbrState], (int)pVirtNbr->ospfVirtNbrState);    printf("ospfVirtNbrEvents.%i.%i.%i.%i.%i.%i.%i.%i [integer] %ld\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            pVirtNbr->ospfVirtNbrEvents);    printf("ospfVirtNbrLsRetransQLen.%i.%i.%i.%i.%i.%i.%i.%i [integer] %ld\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            pVirtNbr->ospfVirtNbrLsRetransQLen);    printf("ospfVirtNbrHelloSuppressed.%i.%i.%i.%i.%i.%i.%i.%i [integer] %s(%i)\n",            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            trueValue[pVirtNbr->ospfVirtNbrHelloSuppressed],            (int)pVirtNbr->ospfVirtNbrHelloSuppressed);    printf("\n");    return;}/***************************************************************************************** ospfMapiVirtNbrShow - show routine for ospfVirtNbrTable** This routine displays all neighbor instances found in the ospfVirtNbrTable for* debugging and diagnostic purposes.** RETURNS: OK or ERROR** ERRNO: N/A*/STATUS ospfMapiVirtNbrShow( void ){    /* make sure the facility is properly initialized */    OSPF_MAPI_SHOW_INIT_CHECK();    semTake( thisMapi->semMapiMutex, WAIT_FOREVER );    avlTreePrint( &thisMapi->ospfVirtNbrAvl.pOspfAvlRoot, ospfMapiVirtNbrPrint );    semGive( thisMapi->semMapiMutex );    return OK;}/***************************************************************************************** ospfMapiExtLsaPrint - debug print routine for ospfMapiExtLsdbShow.** This routine is invoke by ospfMapiExtLsdbShow from the AVL Tree walk routine.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfMapiExtLsaPrint( void *pNode ){    uchar_t            ipIndex1[4];    uchar_t            ipIndex2[4];    mApiOspfExtLsdb_t  *pExtLsdb;    pExtLsdb = (mApiOspfExtLsdb_t *)pNode;    if ( pExtLsdb == NULL )        return;    ospf_mApi_ipAddr2OctetString( pExtLsdb->ospfExtLsdbLsid, ipIndex1 );    ospf_mApi_ipAddr2OctetString( pExtLsdb->ospfExtLsdbRouterId, ipIndex2 );    printf("ospfExtLsdbType.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %s(%i)\n",            (int)pExtLsdb->ospfExtLsdbType, ipIndex1[0], ipIndex1[1], ipIndex1[2],            ipIndex1[3], ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            extType, (int)pExtLsdb->ospfExtLsdbType);    printf("ospfExtLsdbLsid.%i.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",            (int)pExtLsdb->ospfExtLsdbType, ipIndex1[0], ipIndex1[1], ipIndex1[2],            ipIndex1[3], ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3]);    printf("ospfExtLsdbRouterId.%i.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",            (int)pExtLsdb->ospfExtLsdbType, ipIndex1[0], ipIndex1[1], ipIndex1[2],            ipIndex1[3], ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3]);    printf("ospfExtLsdbSequence.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %ld(0x%lX)\n",            (int)pExtLsdb->ospfExtLsdbType, ipIndex1[0], ipIndex1[1], ipIndex1[2],            ipIndex1[3], ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            pExtLsdb->ospfExtLsdbSequence, pExtLsdb->ospfExtLsdbSequence);    printf("ospfExtLsdbAge.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %ld\n",            (int)pExtLsdb->ospfExtLsdbType, ipIndex1[0], ipIndex1[1], ipIndex1[2],            ipIndex1[3], ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            pExtLsdb->ospfExtLsdbAge);    printf("ospfExtLsdbChecksum.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %ld(0x%lX)\n",            (int)pExtLsdb->ospfExtLsdbType, ipIndex1[0], ipIndex1[1], ipIndex1[2],            ipIndex1[3], ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            pExtLsdb->ospfExtLsdbChecksum, pExtLsdb->ospfExtLsdbChecksum);    printf("ospfExtLsdbProtoId.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %s(%ld)\n",            (int)pExtLsdb->ospfExtLsdbType, ipIndex1[0], ipIndex1[1], ipIndex1[2],            ipIndex1[3], ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],            extLsdbM2ProtoId[pExtLsdb->ospfExtLsdbProtoId],             pExtLsdb->ospfExtLsdbProtoId);        printf("\n");    return;}/***************************************************************************************** ospfMapiExtLsdbShow - show routine for ospfExtLsdbTable** This routine displays all external link state database instances found in the* ospfExtLsdbTable for debugging and diagnostic purposes.** RETURNS: OK or ERROR** ERRNO: N/A*/STATUS ospfMapiExtLsdbShow( void ){    /* make sure the facility is properly initialized */    OSPF_MAPI_SHOW_INIT_CHECK();    semTake( thisMapi->semMapiMutex, WAIT_FOREVER );    avlTreePrint( &thisMapi->ospfExtLsdbAvl.pOspfAvlRoot, ospfMapiExtLsaPrint );    semGive( thisMapi->semMapiMutex );    return OK;}/***************************************************************************************** ospfMapiAreaAgPrint - debug print routine for ospfMapiAreaAgShow.** This routine is invoke by ospfMapiAreaAggregateShow from the AVL Tree walk routine.** RETURNS: N/A** NOMANUAL*/LOCAL void ospfMapiAreaAgPrint( void *pNode ){    uchar_t                   ipIndex1[4];    uchar_t                   ipIndex2[4];    uchar_t                   ipIndex3[4];    mApiOspfAreaAggregate_t   *pAreaAg;    pAreaAg = (mApiOspfAreaAggregate_t *)pNode;    if ( pAreaAg == NULL )        return;    ospf_mApi_ipAddr2OctetString( pAreaAg->ospfAreaAggregateAreaID, ipIndex1 );    ospf_mApi_ipAddr2OctetString( pAreaAg->ospfAreaAggregateNet, ipIndex2 );    ospf_mApi_ipAddr2OctetString( pAreaAg->ospfAreaAggregateMask, ipIndex3 );    printf("ospfAreaAggregateAreaID.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",           ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],           pAreaAg->ospfAreaAggregateLsdbType,           ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],           ipIndex3[0], ipIndex3[1], ipIndex3[2], ipIndex3[3],           ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3]);    printf("ospfAreaAggregateLsdbType.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %s(%i)\n",           ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],           pAreaAg->ospfAreaAggregateLsdbType,           ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],           ipIndex3[0], ipIndex3[1], ipIndex3[2], ipIndex3[3],           agType[pAreaAg->ospfAreaAggregateLsdbType],           (int)pAreaAg->ospfAreaAggregateLsdbType);    printf("ospfAreaAggregateNet.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",           ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],           pAreaAg->ospfAreaAggregateLsdbType,           ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],           ipIndex3[0], ipIndex3[1], ipIndex3[2], ipIndex3[3],           ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3]);    printf("ospfAreaAggregateMask.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i [ipaddress] %i.%i.%i.%i\n",           ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],           pAreaAg->ospfAreaAggregateLsdbType,           ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],           ipIndex3[0], ipIndex3[1], ipIndex3[2], ipIndex3[3],           ipIndex3[0], ipIndex3[1], ipIndex3[2], ipIndex3[3]);    printf("ospfAreaAggregateStatus.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %s(%i)\n",           ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],           pAreaAg->ospfAreaAggregateLsdbType,           ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],           ipIndex3[0], ipIndex3[1], ipIndex3[2], ipIndex3[3],           rowStatus[pAreaAg->ospfAreaAggregateStatus],           (int)pAreaAg->ospfAreaAggregateStatus);    printf("ospfAreaAggregateEffect.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i.%i [integer] %s(%i)\n",           ipIndex1[0], ipIndex1[1], ipIndex1[2], ipIndex1[3],           pAreaAg->ospfAreaAggregateLsdbType,           ipIndex2[0], ipIndex2[1], ipIndex2[2], ipIndex2[3],           ipIndex3[0], ipIndex3[1], ipIndex3[2], ipIndex3[3],           agEffect[pAreaAg->ospfAreaAggregateEffect],           (int)pAreaAg->ospfAreaAggregateEffect);    printf("\n");    return;}/***************************************************************************************** ospfMapiAreaAggregateShow - show routine for ospfAreaAggregateTable** This routine displays all area aggregate instances found in the ospfAreaAggregateTable* for debugging and diagnostic purposes.** RETURNS: OK or ERROR** ERRNO: N/A*/STATUS ospfMapiAreaAggregateShow( void ){    /* make sure the facility is properly initialized */    OSPF_MAPI_SHOW_INIT_CHECK();    semTake( thisMapi->semMapiMutex, WAIT_FOREVER );    avlTreePrint( &thisMapi->ospfAreaAgAvl.pOspfAvlRoot, ospfMapiAreaAgPrint );    semGive( thisMapi->semMapiMutex );    return OK;}/********************************************************************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -