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

📄 ipsystemstatstable.c

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 C
📖 第 1 页 / 共 5 页
字号:
 *        Pointer to the row request context. * @param ipSystemStatsInUnknownProtos_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 */intipSystemStatsInUnknownProtos_get(ipSystemStatsTable_rowreq_ctx *                                 rowreq_ctx,                                 u_long *                                 ipSystemStatsInUnknownProtos_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInUnknownProtos_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInUnknownProtos_get", "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInUnknownProtos data.     * set (* ipSystemStatsInUnknownProtos_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInUnknownProtos_val_ptr) =        rowreq_ctx->data->stats.InUnknownProtos;    return MFD_SUCCESS;}                               /* ipSystemStatsInUnknownProtos_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInTruncatedPkts * ipSystemStatsInTruncatedPkts is subid 11 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.11 * Description:The number of input IP datagrams discarded because the            datagram frame didn't carry enough data.            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 ipSystemStatsInTruncatedPkts data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInTruncatedPkts_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 */intipSystemStatsInTruncatedPkts_get(ipSystemStatsTable_rowreq_ctx *                                 rowreq_ctx,                                 u_long *                                 ipSystemStatsInTruncatedPkts_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInTruncatedPkts_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInTruncatedPkts_get", "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInTruncatedPkts data.     * set (* ipSystemStatsInTruncatedPkts_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInTruncatedPkts_val_ptr) =        rowreq_ctx->data->stats.InTruncatedPkts;    return MFD_SUCCESS;}                               /* ipSystemStatsInTruncatedPkts_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInForwDatagrams * ipSystemStatsInForwDatagrams is subid 12 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.12 * Description:The number of input datagrams for which this entity was not            their final IP destination and for which this entity            attempted to find a route to forward them to that final            destination.  In entities which do not act as IP routers,            this counter will include only those datagrams which were            Source-Routed via this entity, and the Source-Route            processing was successful.            When tracking interface statistics the counter of the            incoming interface is incremented for each datagram.            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 ipSystemStatsInForwDatagrams data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInForwDatagrams_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 */intipSystemStatsInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *                                 rowreq_ctx,                                 u_long *                                 ipSystemStatsInForwDatagrams_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInForwDatagrams_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInForwDatagrams_get", "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInForwDatagrams data.     * set (* ipSystemStatsInForwDatagrams_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInForwDatagrams_val_ptr) =        rowreq_ctx->data->stats.HCInForwDatagrams.low;    return MFD_SUCCESS;}                               /* ipSystemStatsInForwDatagrams_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInForwDatagrams * ipSystemStatsHCInForwDatagrams is subid 13 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.13 * Description:The number of input datagrams for which this entity was not            their final IP destination and for which this entity            attempted to find a route to forward them to that final            destination.  This object counts the same packets as            ipSystemStatsInForwDatagrams 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 ipSystemStatsHCInForwDatagrams data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsHCInForwDatagrams_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 */intipSystemStatsHCInForwDatagrams_get(ipSystemStatsTable_rowreq_ctx *                                   rowreq_ctx,                                   U64 *                                   ipSystemStatsHCInForwDatagrams_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsHCInForwDatagrams_val_ptr);    /*     * TODO:231:o: |-> copy ipSystemStatsHCInForwDatagrams data.     * get (* ipSystemStatsHCInForwDatagrams_val_ptr ).low and (* ipSystemStatsHCInForwDatagrams_val_ptr ).high from rowreq_ctx->data     */    (*ipSystemStatsHCInForwDatagrams_val_ptr).low =        rowreq_ctx->data->stats.HCInForwDatagrams.low;    (*ipSystemStatsHCInForwDatagrams_val_ptr).high =        rowreq_ctx->data->stats.HCInForwDatagrams.high;    return MFD_SUCCESS;}                               /* ipSystemStatsHCInForwDatagrams_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsReasmReqds * ipSystemStatsReasmReqds is subid 14 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.14 * Description:The number of IP fragments received which needed to be            reassembled at this interface.            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 ipSystemStatsReasmReqds data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsReasmReqds_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 */intipSystemStatsReasmReqds_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                            u_long * ipSystemStatsReasmReqds_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsReasmReqds_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsReasmReqds_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsReasmReqds data.     * set (* ipSystemStatsReasmReqds_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsReasmReqds_val_ptr) =        rowreq_ctx->data->stats.ReasmReqds;    return MFD_SUCCESS;}                               /* ipSystemStatsReasmReqds_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsReasmOKs * ipSystemStatsReasmOKs is subid 15 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.15 * Description:The number of IP datagrams successfully reassembled.            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 ipSystemStatsReasmOKs data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsReasmOKs_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 */intipSystemStatsReasmOKs_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                          u_long * ipSystemStatsReasmOKs_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsReasmOKs_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsReasmOKs_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsReasmOKs data.     * set (* ipSystemStatsReasmOKs_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsReasmOKs_val_ptr) = rowreq_ctx->data->stats.ReasmOKs;    return MFD_SUCCESS;}                               /* ipSystemStatsReasmOKs_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsReasmFails * ipSystemStatsReasmFails is subid 16 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.16 * Description:The number of failures detected by the IP re-assembly

⌨️ 快捷键说明

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