📄 inetcidrroutetable.c
字号:
* @param rowreq_ctx * Pointer to the row request context. * @param inetCidrRouteAge_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 */intinetCidrRouteAge_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, u_long * inetCidrRouteAge_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != inetCidrRouteAge_val_ptr); DEBUGMSGTL(("verbose:inetCidrRouteTable:inetCidrRouteAge_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the inetCidrRouteAge data-> * copy (* inetCidrRouteAge_val_ptr ) from rowreq_ctx->data */ /* * TODO:235:M: |-> Remove log message/SKIP once you've set inetCidrRouteAge data */ (*inetCidrRouteAge_val_ptr) = rowreq_ctx->data->rt_age; return MFD_SUCCESS;} /* inetCidrRouteAge_get *//*--------------------------------------------------------------------- * IP-FORWARD-MIB::inetCidrRouteEntry.inetCidrRouteNextHopAS * inetCidrRouteNextHopAS is subid 11 of inetCidrRouteEntry. * Its status is Current, and its access level is Create. * OID: .1.3.6.1.2.1.4.24.7.1.11 * Description:The Autonomous System Number of the Next Hop. The semantics of this object are determined by the routing- protocol specified in the route's inetCidrRouteProto value. When this object is unknown or not relevant its value should be set to zero. * * Attributes: * accessible 1 isscalar 0 enums 0 hasdefval 1 * readable 1 iscolumn 1 ranges 0 hashint 1 * settable 1 * defval: 0 * hint: d * * * Its syntax is InetAutonomousSystemNumber (based on perltype UNSIGNED32) * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long) *//** * Extract the current value of the inetCidrRouteNextHopAS data-> * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param inetCidrRouteNextHopAS_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 */intinetCidrRouteNextHopAS_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, u_long * inetCidrRouteNextHopAS_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != inetCidrRouteNextHopAS_val_ptr); DEBUGMSGTL(("verbose:inetCidrRouteTable:inetCidrRouteNextHopAS_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the inetCidrRouteNextHopAS data-> * copy (* inetCidrRouteNextHopAS_val_ptr ) from rowreq_ctx->data */ /* * TODO:235:M: |-> Remove log message/SKIP once you've set inetCidrRouteNextHopAS data */ (*inetCidrRouteNextHopAS_val_ptr) = rowreq_ctx->data->rt_nexthop_as; return MFD_SUCCESS;} /* inetCidrRouteNextHopAS_get *//*--------------------------------------------------------------------- * IP-FORWARD-MIB::inetCidrRouteEntry.inetCidrRouteMetric1 * inetCidrRouteMetric1 is subid 12 of inetCidrRouteEntry. * Its status is Current, and its access level is Create. * OID: .1.3.6.1.2.1.4.24.7.1.12 * Description:The primary routing metric for this route. The semantics of this metric are determined by the routing- protocol specified in the route's inetCidrRouteProto value. If this metric is not used, its value should be set to -1. * * Attributes: * accessible 1 isscalar 0 enums 0 hasdefval 1 * readable 1 iscolumn 1 ranges 0 hashint 0 * settable 1 * defval: -1 * * * Its syntax is INTEGER32 (based on perltype INTEGER32) * The net-snmp type is ASN_INTEGER. The C type decl is long (long) *//** * Extract the current value of the inetCidrRouteMetric1 data-> * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param inetCidrRouteMetric1_val_ptr * Pointer to storage for a long variable * * @retval MFD_SUCCESS : success * @retval MFD_SKIP : skip this node (no value for now) * @retval MFD_ERROR : Any other error */intinetCidrRouteMetric1_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, long *inetCidrRouteMetric1_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != inetCidrRouteMetric1_val_ptr); DEBUGMSGTL(("verbose:inetCidrRouteTable:inetCidrRouteMetric1_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the inetCidrRouteMetric1 data-> * copy (* inetCidrRouteMetric1_val_ptr ) from rowreq_ctx->data */ /* * TODO:235:M: |-> Remove log message/SKIP once you've set inetCidrRouteMetric1 data */ (*inetCidrRouteMetric1_val_ptr) = rowreq_ctx->data->rt_metric1; return MFD_SUCCESS;} /* inetCidrRouteMetric1_get *//*--------------------------------------------------------------------- * IP-FORWARD-MIB::inetCidrRouteEntry.inetCidrRouteMetric2 * inetCidrRouteMetric2 is subid 13 of inetCidrRouteEntry. * Its status is Current, and its access level is Create. * OID: .1.3.6.1.2.1.4.24.7.1.13 * Description:An alternate routing metric for this route. The semantics of this metric are determined by the routing- protocol specified in the route's inetCidrRouteProto value. If this metric is not used, its value should be set to -1. * * Attributes: * accessible 1 isscalar 0 enums 0 hasdefval 1 * readable 1 iscolumn 1 ranges 0 hashint 0 * settable 1 * defval: -1 * * * Its syntax is INTEGER32 (based on perltype INTEGER32) * The net-snmp type is ASN_INTEGER. The C type decl is long (long) *//** * Extract the current value of the inetCidrRouteMetric2 data-> * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param inetCidrRouteMetric2_val_ptr * Pointer to storage for a long variable * * @retval MFD_SUCCESS : success * @retval MFD_SKIP : skip this node (no value for now) * @retval MFD_ERROR : Any other error */intinetCidrRouteMetric2_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, long *inetCidrRouteMetric2_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != inetCidrRouteMetric2_val_ptr); DEBUGMSGTL(("verbose:inetCidrRouteTable:inetCidrRouteMetric2_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the inetCidrRouteMetric2 data-> * copy (* inetCidrRouteMetric2_val_ptr ) from rowreq_ctx->data */ /* * TODO:235:M: |-> Remove log message/SKIP once you've set inetCidrRouteMetric2 data */ (*inetCidrRouteMetric2_val_ptr) = rowreq_ctx->data->rt_metric2; return MFD_SUCCESS;} /* inetCidrRouteMetric2_get *//*--------------------------------------------------------------------- * IP-FORWARD-MIB::inetCidrRouteEntry.inetCidrRouteMetric3 * inetCidrRouteMetric3 is subid 14 of inetCidrRouteEntry. * Its status is Current, and its access level is Create. * OID: .1.3.6.1.2.1.4.24.7.1.14 * Description:An alternate routing metric for this route. The semantics of this metric are determined by the routing- protocol specified in the route's inetCidrRouteProto value. If this metric is not used, its value should be set to -1. * * Attributes: * accessible 1 isscalar 0 enums 0 hasdefval 1 * readable 1 iscolumn 1 ranges 0 hashint 0 * settable 1 * defval: -1 * * * Its syntax is INTEGER32 (based on perltype INTEGER32) * The net-snmp type is ASN_INTEGER. The C type decl is long (long) *//** * Extract the current value of the inetCidrRouteMetric3 data-> * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param inetCidrRouteMetric3_val_ptr * Pointer to storage for a long variable * * @retval MFD_SUCCESS : success * @retval MFD_SKIP : skip this node (no value for now) * @retval MFD_ERROR : Any other error */intinetCidrRouteMetric3_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, long *inetCidrRouteMetric3_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != inetCidrRouteMetric3_val_ptr); DEBUGMSGTL(("verbose:inetCidrRouteTable:inetCidrRouteMetric3_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the inetCidrRouteMetric3 data-> * copy (* inetCidrRouteMetric3_val_ptr ) from rowreq_ctx->data */ /* * TODO:235:M: |-> Remove log message/SKIP once you've set inetCidrRouteMetric3 data */ (*inetCidrRouteMetric3_val_ptr) = rowreq_ctx->data->rt_metric3; return MFD_SUCCESS;} /* inetCidrRouteMetric3_get *//*--------------------------------------------------------------------- * IP-FORWARD-MIB::inetCidrRouteEntry.inetCidrRouteMetric4 * inetCidrRouteMetric4 is subid 15 of inetCidrRouteEntry. * Its status is Current, and its access level is Create. * OID: .1.3.6.1.2.1.4.24.7.1.15 * Description:An alternate routing metric for this route. The semantics of this metric are determined by the routing- protocol specified in the route's inetCidrRouteProto value. If this metric is not used, its value should be set to -1. * * Attributes: * accessible 1 isscalar 0 enums 0 hasdefval 1 * readable 1 iscolumn 1 ranges 0 hashint 0 * settable 1 * defval: -1 * * * Its syntax is INTEGER32 (based on perltype INTEGER32) * The net-snmp type is ASN_INTEGER. The C type decl is long (long) *//** * Extract the current value of the inetCidrRouteMetric4 data-> * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param inetCidrRouteMetric4_val_ptr * Pointer to storage for a long variable * * @retval MFD_SUCCESS : success * @retval MFD_SKIP : skip this node (no value for now) * @retval MFD_ERROR : Any other error */intinetCidrRouteMetric4_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, long *inetCidrRouteMetric4_val_ptr){ /** we should have a non-NULL pointer */ netsnmp_assert(NULL != inetCidrRouteMetric4_val_ptr); DEBUGMSGTL(("verbose:inetCidrRouteTable:inetCidrRouteMetric4_get", "called\n")); netsnmp_assert(NULL != rowreq_ctx); /* * TODO:231:o: |-> Extract the current value of the inetCidrRouteMetric4 data-> * copy (* inetCidrRouteMetric4_val_ptr ) from rowreq_ctx->data */ /* * TODO:235:M: |-> Remove log message/SKIP once you've set inetCidrRouteMetric4 data */ (*inetCidrRouteMetric4_val_ptr) = rowreq_ctx->data->rt_metric4; return MFD_SUCCESS;} /* inetCidrRouteMetric4_get *//*--------------------------------------------------------------------- * IP-FORWARD-MIB::inetCidrRouteEntry.inetCidrRouteMetric5 * inetCidrRouteMetric5 is subid 16 of inetCidrRouteEntry. * Its status is Current, and its access level is Create. * OID: .1.3.6.1.2.1.4.24.7.1.16 * Description:An alternate routing metric for this route. The semantics of this metric are determined by the routing- protocol specified in the route's inetCidrRouteProto value. If this metric is not used, its value should be set to -1. * * Attributes: * accessible 1 isscalar 0 enums 0 hasdefval 1 * readable 1 iscolumn 1 ranges 0 hashint 0 * settable 1 * defval: -1 * * * Its syntax is INTEGER32 (based on perltype INTEGER32) * The net-snmp type is ASN_INTEGER. The C type decl is long (long) *//** * Extract the current value of the inetCidrRouteMetric5 data-> * * Set a value using the data context for the row. * * @param rowreq_ctx * Pointer to the row request context. * @param inetCidrRouteMetric5_val_ptr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -