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

📄 ipsystemstatstable.c

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 C
📖 第 1 页 / 共 5 页
字号:
                              U64 * ipSystemStatsHCInReceives_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsHCInReceives_val_ptr);    /*     * TODO:231:o: |-> copy ipSystemStatsHCInReceives data.     * get (* ipSystemStatsHCInReceives_val_ptr ).low and (* ipSystemStatsHCInReceives_val_ptr ).high from rowreq_ctx->data     */    (*ipSystemStatsHCInReceives_val_ptr).low =        rowreq_ctx->data->stats.HCInReceives.low;    (*ipSystemStatsHCInReceives_val_ptr).high =        rowreq_ctx->data->stats.HCInReceives.high;    return MFD_SUCCESS;}                               /* ipSystemStatsHCInReceives_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInOctets * ipSystemStatsInOctets is subid 5 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.5 * Description:The total number of octets received in input IP datagrams,            including those received in error.  Octets from datagrams            counted in ipSystemStatsInReceives MUST be counted here.            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 ipSystemStatsInOctets data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInOctets_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 */intipSystemStatsInOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                          u_long * ipSystemStatsInOctets_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInOctets_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInOctets_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInOctets data.     * set (* ipSystemStatsInOctets_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInOctets_val_ptr) =        rowreq_ctx->data->stats.HCInOctets.low;    return MFD_SUCCESS;}                               /* ipSystemStatsInOctets_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsHCInOctets * ipSystemStatsHCInOctets is subid 6 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.6 * Description:The total number of octets received in input IP datagrams,            including those received in error.  This object counts the            same octets as ipSystemStatsInOctets 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 ipSystemStatsHCInOctets data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsHCInOctets_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 */intipSystemStatsHCInOctets_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                            U64 * ipSystemStatsHCInOctets_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsHCInOctets_val_ptr);    /*     * TODO:231:o: |-> copy ipSystemStatsHCInOctets data.     * get (* ipSystemStatsHCInOctets_val_ptr ).low and (* ipSystemStatsHCInOctets_val_ptr ).high from rowreq_ctx->data     */    (*ipSystemStatsHCInOctets_val_ptr).low =        rowreq_ctx->data->stats.HCInOctets.low;    (*ipSystemStatsHCInOctets_val_ptr).high =        rowreq_ctx->data->stats.HCInOctets.high;    return MFD_SUCCESS;}                               /* ipSystemStatsHCInOctets_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInHdrErrors * ipSystemStatsInHdrErrors is subid 7 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.7 * Description:The number of input IP datagrams discarded due to errors in            their IP headers, including version number mismatch, other            format errors, hop count exceeded, errors discovered in            processing their IP options, etc.            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 ipSystemStatsInHdrErrors data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInHdrErrors_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 */intipSystemStatsInHdrErrors_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                             u_long * ipSystemStatsInHdrErrors_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInHdrErrors_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInHdrErrors_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInHdrErrors data.     * set (* ipSystemStatsInHdrErrors_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInHdrErrors_val_ptr) =        rowreq_ctx->data->stats.InHdrErrors;    return MFD_SUCCESS;}                               /* ipSystemStatsInHdrErrors_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInNoRoutes * ipSystemStatsInNoRoutes is subid 8 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.8 * Description:The number of input IP datagrams discarded because no route            could be found to transmit them to their destination.            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 ipSystemStatsInNoRoutes data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInNoRoutes_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 */intipSystemStatsInNoRoutes_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                            u_long * ipSystemStatsInNoRoutes_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInNoRoutes_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInNoRoutes_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInNoRoutes data.     * set (* ipSystemStatsInNoRoutes_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInNoRoutes_val_ptr) =        rowreq_ctx->data->stats.InNoRoutes;    return MFD_SUCCESS;}                               /* ipSystemStatsInNoRoutes_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInAddrErrors * ipSystemStatsInAddrErrors is subid 9 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.9 * Description:The number of input IP datagrams discarded because the IP            address in their IP header's destination field was not a            valid address to be received at this entity.  This count            includes invalid addresses (e.g., ::0) and unsupported            addresses (e.g., addresses with unallocated prefixes).  For            entities which are not IP routers and therefore do not            forward datagrams, this counter includes datagrams discarded            because the destination address was not a local address.            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 ipSystemStatsInAddrErrors data. * * Set a value using the data context for the row. * * @param rowreq_ctx *        Pointer to the row request context. * @param ipSystemStatsInAddrErrors_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 */intipSystemStatsInAddrErrors_get(ipSystemStatsTable_rowreq_ctx * rowreq_ctx,                              u_long * ipSystemStatsInAddrErrors_val_ptr){   /** we should have a non-NULL pointer */    netsnmp_assert(NULL != ipSystemStatsInAddrErrors_val_ptr);    DEBUGMSGTL(("verbose:ipSystemStatsTable:ipSystemStatsInAddrErrors_get",                "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:231:o: |-> Extract the current value of the ipSystemStatsInAddrErrors data.     * set (* ipSystemStatsInAddrErrors_val_ptr ) from rowreq_ctx->data     */    (*ipSystemStatsInAddrErrors_val_ptr) =        rowreq_ctx->data->stats.InAddrErrors;    return MFD_SUCCESS;}                               /* ipSystemStatsInAddrErrors_get *//*--------------------------------------------------------------------- * IP-MIB::ipSystemStatsEntry.ipSystemStatsInUnknownProtos * ipSystemStatsInUnknownProtos is subid 10 of ipSystemStatsEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.4.31.1.1.10 * Description:The number of locally-addressed IP datagrams received            successfully but discarded because of an unknown or            unsupported protocol.            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 ipSystemStatsInUnknownProtos data. * * Set a value using the data context for the row. * * @param rowreq_ctx

⌨️ 快捷键说明

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