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

📄 ipsystemstatstable.c

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 C
📖 第 1 页 / 共 5 页
字号:
            algorithm (for whatever reason: timed out, errors, etc.).            Note that this is not necessarily a count of discarded IP            fragments since some algorithms (notably the algorithm in            RFC 815) can lose track of the number of fragments by            combining them as they are received.            When tracking interface statistics the counter of the            interface to which these fragments were addressed is            incremented.  This interface might not be the same as the            input interface for some of the fragments.            Discontinuities in the value of this counter can occur at            re-initialization of the management system, and at other            times as indicated by the value of            ipSystemStatsDiscontinuityTime. * * Attributes: *   accessible 1     isscalar 0     enums  0      hasdefval 0 *   readable   1     iscolumn 1     ranges 0      hashint   0 *   settable   0 * * * Its syntax is COUNTER (based on perltype COUNTER) * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long) *//** * Extract the current value of the ipSystemStatsReasmFails data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsReasmFails_val_ptr *        Pointer to storage for a u_long variable * * @retval MFD_SUCCESS         : success * @retval MFD_SKIP            : skip this node (no value for now) * @retval MFD_ERROR           : Any other error */intipSystemStatsReasmFails_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                            u_long * ipSystemStatsReasmFails_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsReasmFails_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsReasmFails_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsReasmFails data.     * set (* ipSystemStatsReasmFails_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsReasmFails_val_ptr) =        rowreq_ctx->data->stats.ReasmFails;    return MFD_SUCCESS;}                               /* ipSystemStatsReasmFails_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInDiscards * ipSystemStatsInDiscards is subid 17 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.17 * Description:The number of input IP datagrams for which no problems were            encountered to prevent their continued processing, but which            were discarded (e.g., for lack of buffer space).  Note that            this counter does not include any datagrams discarded while            awaiting re-assembly.            Discontinuities in the value of this counter can occur at            re-initialization of the management system, and at other            times as indicated by the value of            ipSystemStatsDiscontinuityTime. * * Attributes: *   accessible 1     isscalar 0     enums  0      hasdefval 0 *   readable   1     iscolumn 1     ranges 0      hashint   0 *   settable   0 * * * Its syntax is COUNTER (based on perltype COUNTER) * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long) *//** * Extract the current value of the ipSystemStatsInDiscards data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInDiscards_val_ptr *        Pointer to storage for a u_long variable * * @retval MFD_SUCCESS         : success * @retval MFD_SKIP            : skip this node (no value for now) * @retval MFD_ERROR           : Any other error */intipSystemStatsInDiscards_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                            u_long * ipSystemStatsInDiscards_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInDiscards_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInDiscards_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInDiscards data.     * set (* ipSystemStatsInDiscards_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInDiscards_val_ptr) =        rowreq_ctx->data->stats.InDiscards;    return MFD_SUCCESS;}                               /* ipSystemStatsInDiscards_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInDelivers * ipSystemStatsInDelivers is subid 18 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.18 * Description:The total number of datagrams successfully delivered to IP            user-protocols (including ICMP).            When tracking interface statistics the counter of the            interface to which these datagrams were addressed is            incremented.  This interface might not be the same as the            input interface for some of the datagrams.            Discontinuities in the value of this counter can occur at            re-initialization of the management system, and at other            times as indicated by the value of            ipSystemStatsDiscontinuityTime. * * Attributes: *   accessible 1     isscalar 0     enums  0      hasdefval 0 *   readable   1     iscolumn 1     ranges 0      hashint   0 *   settable   0 * * * Its syntax is COUNTER (based on perltype COUNTER) * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long) *//** * Extract the current value of the ipSystemStatsInDelivers data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInDelivers_val_ptr *        Pointer to storage for a u_long variable * * @retval MFD_SUCCESS         : success * @retval MFD_SKIP            : skip this node (no value for now) * @retval MFD_ERROR           : Any other error */intipSystemStatsInDelivers_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                            u_long * ipSystemStatsInDelivers_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInDelivers_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInDelivers_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInDelivers data.     * set (* ipSystemStatsInDelivers_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInDelivers_val_ptr) =        rowreq_ctx->data->stats.HCInDelivers.low;    return MFD_SUCCESS;}                               /* ipSystemStatsInDelivers_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInDelivers * ipSystemStatsHCInDelivers is subid 19 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.19 * Description:The total number of datagrams successfully delivered to IP            user-protocols (including ICMP).  This object counts the            same packets as ipSystemStatsInDelivers but allows for            larger values.            Discontinuities in the value of this counter can occur at            re-initialization of the management system, and at other            times as indicated by the value of            ipSystemStatsDiscontinuityTime. * * Attributes: *   accessible 1     isscalar 0     enums  0      hasdefval 0 *   readable   1     iscolumn 1     ranges 0      hashint   0 *   settable   0 * * * Its syntax is COUNTER64 (based on perltype COUNTER64) * The net-snmp type is ASN_COUNTER64. The C type decl is U64 (U64) *//** * Extract the current value of the ipSystemStatsHCInDelivers data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsHCInDelivers_val_ptr *        Pointer to storage for a U64 variable * * @retval MFD_SUCCESS         : success * @retval MFD_SKIP            : skip this node (no value for now) * @retval MFD_ERROR           : Any other error */intipSystemStatsHCInDelivers_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                              U64 * ipSystemStatsHCInDelivers_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsHCInDelivers_val_ptr);    /*     * TODO:231:o: |-> copy ipSystemStatsHCInDelivers data.     * get (* ipSystemStatsHCInDelivers_val_ptr ).low and (* ipSystemStatsHCInDelivers_val_ptr ).high from rowreq_ctx->data     */    (*ipSystemStatsHCInDelivers_val_ptr).low =        rowreq_ctx->data->stats.HCInDelivers.low;    (*ipSystemStatsHCInDelivers_val_ptr).high =        rowreq_ctx->data->stats.HCInDelivers.high;    return MFD_SUCCESS;}                               /* ipSystemStatsHCInDelivers_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsOutRequests * ipSystemStatsOutRequests is subid 20 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.20 * Description:The total number of IP datagrams which local IP user-            protocols (including ICMP) supplied to IP in requests for            transmission.  Note that this counter does not include any            datagrams counted in ipSystemStatsOutForwDatagrams.            Discontinuities in the value of this counter can occur at            re-initialization of the management system, and at other            times as indicated by the value of            ipSystemStatsDiscontinuityTime. * * Attributes: *   accessible 1     isscalar 0     enums  0      hasdefval 0 *   readable   1     iscolumn 1     ranges 0      hashint   0 *   settable   0 * * * Its syntax is COUNTER (based on perltype COUNTER) * The net-snmp type is ASN_COUNTER. The C type decl is u_long (u_long) *//** * Extract the current value of the ipSystemStatsOutRequests data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsOutRequests_val_ptr *        Pointer to storage for a u_long variable * * @retval MFD_SUCCESS         : success * @retval MFD_SKIP            : skip this node (no value for now) * @retval MFD_ERROR           : Any other error */intipSystemStatsOutRequests_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                             u_long * ipSystemStatsOutRequests_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsOutRequests_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsOutRequests_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsOutRequests data.     * set (* ipSystemStatsOutRequests_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsOutRequests_val_ptr) =        rowreq_ctx->data->stats.HCOutRequests.low;    return MFD_SUCCESS;}                               /* ipSystemStatsOutRequests_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCOutRequests * ipSystemStatsHCOutRequests is subid 21 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.21 * Description:The total number of IP datagrams which local IP user-            protocols (including ICMP) supplied to IP in requests for            transmission.  This object counts the same packets as            ipSystemStatsHCOutRequests but allows for larger values.            Discontinuities in the value of this counter can occur at            re-initialization of the management system, and at other            times as indicated by the value of            ipSystemStatsDiscontinuityTime. * * Attributes: *   accessible 1     isscalar 0     enums  0      hasdefval 0 *   readable   1     iscolumn 1     ranges 0      hashint   0 *   settable   0 * * * Its syntax is COUNTER64 (based on perltype COUNTER64) * The net-snmp type is ASN_COUNTER64. The C type decl is U64 (U64) *//** * Extract the current value of the ipSystemStatsHCOutRequests data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsHCOutRequests_val_ptr *        Pointer to storage for a U64 variable * * @retval MFD_SUCCESS         : success * @retval MFD_SKIP            : skip this node (no value for now) * @retval MFD_ERROR           : Any other error */intipSystemStatsHCOutRequests_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                               U64 * ipSystemStatsHCOutRequests_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsHCOutRequests_val_ptr);    /*     * TODO:231:o: |-> copy ipSystemStatsHCOutRequests data.     * get (* ipSystemStatsHCOutRequests_val_ptr ).low and (* ipSystemStatsHCOutRequests_val_ptr ).high from rowreq_ctx->data     */    (*ipSystemStatsHCOutRequests_val_ptr).low =        rowreq_ctx->data->stats.HCOutRequests.low;

⌨️ 快捷键说明

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