📄 iftable.c
字号:
re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. * * 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 ifInErrors data. * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param ifInErrors_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 */intifInErrors_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInErrors_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != ifInErrors_val_ptr); DEBUGMSGTL(("verbose:ifTable:ifInErrors_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the ifInErrors data. * set (* ifInErrors_val_ptr ) from rowreq_ctx->data */ (*ifInErrors_val_ptr) = rowreq_ctx->data.ifInErrors; return MFD_SUCCESS;} /* ifInErrors_get *//*--------------------------------------------------------------------- * IF-MIB::ifEntry.ifInUnknownProtos * ifInUnknownProtos is subid 15 of ifEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.2.2.1.15 * Description:For packet-oriented interfaces, the number of packets received via the interface which were discarded because of an unknown or unsupported protocol. For character-oriented or fixed-length interfaces that support protocol multiplexing the number of transmission units received via the interface which were discarded because of an unknown or unsupported protocol. For any interface that does not support protocol multiplexing, this counter will always be 0. 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 ifCounterDiscontinuityTime. * * 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 ifInUnknownProtos data. * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param ifInUnknownProtos_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 */intifInUnknownProtos_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInUnknownProtos_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != ifInUnknownProtos_val_ptr); DEBUGMSGTL(("verbose:ifTable:ifInUnknownProtos_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the ifInUnknownProtos data. * set (* ifInUnknownProtos_val_ptr ) from rowreq_ctx->data */ (*ifInUnknownProtos_val_ptr) = rowreq_ctx->data.ifInUnknownProtos; return MFD_SUCCESS;} /* ifInUnknownProtos_get *//*--------------------------------------------------------------------- * IF-MIB::ifEntry.ifOutOctets * ifOutOctets is subid 16 of ifEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.2.2.1.16 * Description:The total number of octets transmitted out of the interface, including framing characters. 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 ifCounterDiscontinuityTime. * * 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 ifOutOctets data. * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param ifOutOctets_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 */intifOutOctets_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutOctets_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != ifOutOctets_val_ptr); DEBUGMSGTL(("verbose:ifTable:ifOutOctets_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the ifOutOctets data. * set (* ifOutOctets_val_ptr ) from rowreq_ctx->data */ (*ifOutOctets_val_ptr) = rowreq_ctx->data.ifOutOctets; return MFD_SUCCESS;} /* ifOutOctets_get *//*--------------------------------------------------------------------- * IF-MIB::ifEntry.ifOutUcastPkts * ifOutUcastPkts is subid 17 of ifEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.2.2.1.17 * Description:The total number of packets that higher-level protocols requested be transmitted, and which were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. 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 ifCounterDiscontinuityTime. * * 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 ifOutUcastPkts data. * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param ifOutUcastPkts_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 */intifOutUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutUcastPkts_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != ifOutUcastPkts_val_ptr); DEBUGMSGTL(("verbose:ifTable:ifOutUcastPkts_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the ifOutUcastPkts data. * set (* ifOutUcastPkts_val_ptr ) from rowreq_ctx->data */ (*ifOutUcastPkts_val_ptr) = rowreq_ctx->data.ifOutUcastPkts; return MFD_SUCCESS;} /* ifOutUcastPkts_get *//*--------------------------------------------------------------------- * IF-MIB::ifEntry.ifOutNUcastPkts * ifOutNUcastPkts is subid 18 of ifEntry. * Its status is Deprecated, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.2.2.1.18 * Description:The total number of packets that higher-level protocols requested be transmitted, and which were addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. 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 ifCounterDiscontinuityTime. This object is deprecated in favour of ifOutMulticastPkts and ifOutBroadcastPkts. * * 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 ifOutNUcastPkts data. * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param ifOutNUcastPkts_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 */intifOutNUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutNUcastPkts_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != ifOutNUcastPkts_val_ptr); DEBUGMSGTL(("verbose:ifTable:ifOutNUcastPkts_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the ifOutNUcastPkts data. * set (* ifOutNUcastPkts_val_ptr ) from rowreq_ctx->data */ (*ifOutNUcastPkts_val_ptr) = rowreq_ctx->data.ifentry->stats.onucast; return MFD_SUCCESS;} /* ifOutNUcastPkts_get *//*--------------------------------------------------------------------- * IF-MIB::ifEntry.ifOutDiscards * ifOutDiscards is subid 19 of ifEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.2.2.1.19 * Description:The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. 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 ifCounterDiscontinuityTime. * * 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 ifOutDiscards data. * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param ifOutDiscards_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 */intifOutDiscards_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutDiscards_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != ifOutDiscards_val_ptr); DEBUGMSGTL(("verbose:ifTable:ifOutDiscards_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the ifOutDiscards data. * set (* ifOutDiscards_val_ptr ) from rowreq_ctx->data */ (*ifOutDiscards_val_ptr) = rowreq_ctx->data.ifOutDiscards; return MFD_SUCCESS;} /* ifOutDiscards_get *//*--------------------------------------------------------------------- * IF-MIB::ifEntry.ifOutErrors * ifOutErrors is subid 20 of ifEntry. * Its status is Current, and its access level is ReadOnly. * OID: .1.3.6.1.2.1.2.2.1.20 * Description:For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -