Lines Matching refs:od

79 static void system_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
80 static void system_get_value(struct obj_def *od, u16_t len, void *value);
81 static u8_t system_set_test(struct obj_def *od, u16_t len, void *value);
82 static void system_set_value(struct obj_def *od, u16_t len, void *value);
83 static void interfaces_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
84 static void interfaces_get_value(struct obj_def *od, u16_t len, void *value);
85 static void ifentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
86 static void ifentry_get_value(struct obj_def *od, u16_t len, void *value);
88 static u8_t ifentry_set_test (struct obj_def *od, u16_t len, void *value);
89 static void ifentry_set_value (struct obj_def *od, u16_t len, void *value);
91 static void atentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
92 static void atentry_get_value(struct obj_def *od, u16_t len, void *value);
93 static void ip_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
94 static void ip_get_value(struct obj_def *od, u16_t len, void *value);
95 static u8_t ip_set_test(struct obj_def *od, u16_t len, void *value);
96 static void ip_addrentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
97 static void ip_addrentry_get_value(struct obj_def *od, u16_t len, void *value);
98 static void ip_rteentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
99 static void ip_rteentry_get_value(struct obj_def *od, u16_t len, void *value);
100 static void ip_ntomentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
101 static void ip_ntomentry_get_value(struct obj_def *od, u16_t len, void *value);
102 static void icmp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
103 static void icmp_get_value(struct obj_def *od, u16_t len, void *value);
105 static void tcp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
106 static void tcp_get_value(struct obj_def *od, u16_t len, void *value);
108 static void tcpconnentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
109 static void tcpconnentry_get_value(struct obj_def *od, u16_t len, void *value);
112 static void udp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
113 static void udp_get_value(struct obj_def *od, u16_t len, void *value);
114 static void udpentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
115 static void udpentry_get_value(struct obj_def *od, u16_t len, void *value);
116 static void snmp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od);
117 static void snmp_get_value(struct obj_def *od, u16_t len, void *value);
118 static u8_t snmp_set_test(struct obj_def *od, u16_t len, void *value);
119 static void snmp_set_value(struct obj_def *od, u16_t len, void *value);
2075 noleafs_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
2079 od->instance = MIB_OBJECT_NONE;
2083 noleafs_get_value(struct obj_def *od, u16_t len, void *value)
2085 LWIP_UNUSED_ARG(od);
2091 noleafs_set_test(struct obj_def *od, u16_t len, void *value)
2093 LWIP_UNUSED_ARG(od);
2101 noleafs_set_value(struct obj_def *od, u16_t len, void *value)
2103 LWIP_UNUSED_ARG(od);
2114 * @param od points to object definition.
2117 system_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
2126 od->id_inst_len = ident_len;
2127 od->id_inst_ptr = ident;
2135 od->instance = MIB_OBJECT_SCALAR;
2136 od->access = MIB_OBJECT_READ_ONLY;
2137 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
2138 od->v_len = *sysdescr_len_ptr;
2141 od->instance = MIB_OBJECT_SCALAR;
2142 od->access = MIB_OBJECT_READ_ONLY;
2143 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OBJ_ID);
2144 od->v_len = sysobjid.len * sizeof(s32_t);
2147 od->instance = MIB_OBJECT_SCALAR;
2148 od->access = MIB_OBJECT_READ_ONLY;
2149 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_TIMETICKS);
2150 od->v_len = sizeof(u32_t);
2153 od->instance = MIB_OBJECT_SCALAR;
2154 od->access = MIB_OBJECT_READ_WRITE;
2155 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
2156 od->v_len = *syscontact_len_ptr;
2159 od->instance = MIB_OBJECT_SCALAR;
2160 od->access = MIB_OBJECT_READ_WRITE;
2161 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
2162 od->v_len = *sysname_len_ptr;
2165 od->instance = MIB_OBJECT_SCALAR;
2166 od->access = MIB_OBJECT_READ_WRITE;
2167 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
2168 od->v_len = *syslocation_len_ptr;
2171 od->instance = MIB_OBJECT_SCALAR;
2172 od->access = MIB_OBJECT_READ_ONLY;
2173 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
2174 od->v_len = sizeof(s32_t);
2178 od->instance = MIB_OBJECT_NONE;
2185 od->instance = MIB_OBJECT_NONE;
2198 system_get_value(struct obj_def *od, u16_t len, void *value)
2202 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
2203 id = (u8_t)od->id_inst_ptr[0];
2236 system_set_test(struct obj_def *od, u16_t len, void *value)
2242 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
2243 id = (u8_t)od->id_inst_ptr[0];
2272 system_set_value(struct obj_def *od, u16_t len, void *value)
2277 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
2278 id = (u8_t)od->id_inst_ptr[0];
2301 * @param od points to object definition.
2304 interfaces_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
2311 od->id_inst_len = ident_len;
2312 od->id_inst_ptr = ident;
2314 od->instance = MIB_OBJECT_SCALAR;
2315 od->access = MIB_OBJECT_READ_ONLY;
2316 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
2317 od->v_len = sizeof(s32_t);
2322 od->instance = MIB_OBJECT_NONE;
2335 interfaces_get_value(struct obj_def *od, u16_t len, void *value)
2338 if (od->id_inst_ptr[0] == 1)
2350 * @param od points to object definition.
2353 ifentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
2362 od->id_inst_len = ident_len;
2363 od->id_inst_ptr = ident;
2374 od->instance = MIB_OBJECT_TAB;
2375 od->access = MIB_OBJECT_READ_ONLY;
2376 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
2377 od->v_len = sizeof(s32_t);
2380 od->instance = MIB_OBJECT_TAB;
2381 od->access = MIB_OBJECT_READ_ONLY;
2382 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
2384 od->v_len = 2;
2388 od->instance = MIB_OBJECT_TAB;
2389 od->access = MIB_OBJECT_READ_ONLY;
2390 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_GAUGE);
2391 od->v_len = sizeof(u32_t);
2398 od->instance = MIB_OBJECT_TAB;
2399 od->access = MIB_OBJECT_READ_ONLY;
2400 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
2401 od->v_len = netif->hwaddr_len;
2405 od->instance = MIB_OBJECT_TAB;
2406 od->access = MIB_OBJECT_READ_WRITE;
2407 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
2408 od->v_len = sizeof(s32_t);
2411 od->instance = MIB_OBJECT_TAB;
2412 od->access = MIB_OBJECT_READ_ONLY;
2413 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_TIMETICKS);
2414 od->v_len = sizeof(u32_t);
2427 od->instance = MIB_OBJECT_TAB;
2428 od->access = MIB_OBJECT_READ_ONLY;
2429 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_COUNTER);
2430 od->v_len = sizeof(u32_t);
2434 od->instance = MIB_OBJECT_TAB;
2435 od->access = MIB_OBJECT_READ_ONLY;
2436 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OBJ_ID);
2437 od->v_len = ifspecific.len * sizeof(s32_t);
2441 od->instance = MIB_OBJECT_NONE;
2448 od->instance = MIB_OBJECT_NONE;
2461 ifentry_get_value(struct obj_def *od, u16_t len, void *value)
2466 snmp_ifindextonetif(od->id_inst_ptr[1], &netif);
2467 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
2468 id = (u8_t)od->id_inst_ptr[0];
2474 *sint_ptr = od->id_inst_ptr[1];
2618 ifentry_set_test(struct obj_def *od, u16_t len, void *value)
2625 snmp_ifindextonetif(od->id_inst_ptr[1], &netif);
2626 id = (u8_t)od->id_inst_ptr[0];
2641 ifentry_set_value(struct obj_def *od, u16_t len, void *value)
2647 snmp_ifindextonetif(od->id_inst_ptr[1], &netif);
2648 id = (u8_t)od->id_inst_ptr[0];
2673 * @param od points to object definition.
2676 atentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
2684 od->id_inst_len = ident_len;
2685 od->id_inst_ptr = ident;
2690 od->instance = MIB_OBJECT_TAB;
2691 od->access = MIB_OBJECT_READ_WRITE;
2692 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
2693 od->v_len = sizeof(s32_t);
2696 od->instance = MIB_OBJECT_TAB;
2697 od->access = MIB_OBJECT_READ_WRITE;
2698 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
2699 od->v_len = 6; /** @todo try to use netif::hwaddr_len */
2702 od->instance = MIB_OBJECT_TAB;
2703 od->access = MIB_OBJECT_READ_WRITE;
2704 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_IPADDR);
2705 od->v_len = 4;
2709 od->instance = MIB_OBJECT_NONE;
2716 od->instance = MIB_OBJECT_NONE;
2721 atentry_get_value(struct obj_def *od, u16_t len, void *value)
2734 snmp_ifindextonetif(od->id_inst_ptr[1], &netif);
2735 snmp_oidtoip(&od->id_inst_ptr[2], &ip);
2740 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
2741 id = (u8_t)od->id_inst_ptr[0];
2747 *sint_ptr = od->id_inst_ptr[1];
2770 ip_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
2779 od->id_inst_len = ident_len;
2780 od->id_inst_ptr = ident;
2789 od->instance = MIB_OBJECT_SCALAR;
2790 od->access = MIB_OBJECT_READ_WRITE;
2791 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
2792 od->v_len = sizeof(s32_t);
2811 od->instance = MIB_OBJECT_SCALAR;
2812 od->access = MIB_OBJECT_READ_ONLY;
2813 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_COUNTER);
2814 od->v_len = sizeof(u32_t);
2817 od->instance = MIB_OBJECT_SCALAR;
2818 od->access = MIB_OBJECT_READ_ONLY;
2819 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
2820 od->v_len = sizeof(s32_t);
2824 od->instance = MIB_OBJECT_NONE;
2831 od->instance = MIB_OBJECT_NONE;
2836 ip_get_value(struct obj_def *od, u16_t len, void *value)
2841 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
2842 id = (u8_t)od->id_inst_ptr[0];
2982 * @param od is the object definition
2990 ip_set_test(struct obj_def *od, u16_t len, void *value)
2997 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
2998 id = (u8_t)od->id_inst_ptr[0];
3024 ip_addrentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3034 od->id_inst_len = ident_len;
3035 od->id_inst_ptr = ident;
3043 od->instance = MIB_OBJECT_TAB;
3044 od->access = MIB_OBJECT_READ_ONLY;
3045 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_IPADDR);
3046 od->v_len = 4;
3051 od->instance = MIB_OBJECT_TAB;
3052 od->access = MIB_OBJECT_READ_ONLY;
3053 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3054 od->v_len = sizeof(s32_t);
3058 od->instance = MIB_OBJECT_NONE;
3065 od->instance = MIB_OBJECT_NONE;
3070 ip_addrentry_get_value(struct obj_def *od, u16_t len, void *value)
3078 snmp_oidtoip(&od->id_inst_ptr[1], &ip);
3088 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
3089 id = (u8_t)od->id_inst_ptr[0];
3146 ip_rteentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3156 od->id_inst_len = ident_len;
3157 od->id_inst_ptr = ident;
3166 od->instance = MIB_OBJECT_TAB;
3167 od->access = MIB_OBJECT_READ_WRITE;
3168 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_IPADDR);
3169 od->v_len = 4;
3179 od->instance = MIB_OBJECT_TAB;
3180 od->access = MIB_OBJECT_READ_WRITE;
3181 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3182 od->v_len = sizeof(s32_t);
3185 od->instance = MIB_OBJECT_TAB;
3186 od->access = MIB_OBJECT_READ_ONLY;
3187 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3188 od->v_len = sizeof(s32_t);
3192 od->instance = MIB_OBJECT_TAB;
3193 od->access = MIB_OBJECT_READ_ONLY;
3194 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OBJ_ID);
3195 od->v_len = iprouteinfo.len * sizeof(s32_t);
3199 od->instance = MIB_OBJECT_NONE;
3206 od->instance = MIB_OBJECT_NONE;
3211 ip_rteentry_get_value(struct obj_def *od, u16_t len, void *value)
3218 ident = od->id_inst_ptr;
3362 ip_ntomentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3372 od->id_inst_len = ident_len;
3373 od->id_inst_ptr = ident;
3381 od->instance = MIB_OBJECT_TAB;
3382 od->access = MIB_OBJECT_READ_WRITE;
3383 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3384 od->v_len = sizeof(s32_t);
3387 od->instance = MIB_OBJECT_TAB;
3388 od->access = MIB_OBJECT_READ_WRITE;
3389 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
3390 od->v_len = 6; /** @todo try to use netif::hwaddr_len */
3393 od->instance = MIB_OBJECT_TAB;
3394 od->access = MIB_OBJECT_READ_WRITE;
3395 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_IPADDR);
3396 od->v_len = 4;
3400 od->instance = MIB_OBJECT_NONE;
3407 od->instance = MIB_OBJECT_NONE;
3412 ip_ntomentry_get_value(struct obj_def *od, u16_t len, void *value)
3425 snmp_ifindextonetif(od->id_inst_ptr[1], &netif);
3426 snmp_oidtoip(&od->id_inst_ptr[2], &ip);
3431 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
3432 id = (u8_t)od->id_inst_ptr[0];
3438 *sint_ptr = od->id_inst_ptr[1];
3468 icmp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3476 od->id_inst_len = ident_len;
3477 od->id_inst_ptr = ident;
3479 od->instance = MIB_OBJECT_SCALAR;
3480 od->access = MIB_OBJECT_READ_ONLY;
3481 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_COUNTER);
3482 od->v_len = sizeof(u32_t);
3487 od->instance = MIB_OBJECT_NONE;
3492 icmp_get_value(struct obj_def *od, u16_t len, void *value)
3498 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
3499 id = (u8_t)od->id_inst_ptr[0];
3586 tcp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3595 od->id_inst_len = ident_len;
3596 od->id_inst_ptr = ident;
3608 od->instance = MIB_OBJECT_SCALAR;
3609 od->access = MIB_OBJECT_READ_ONLY;
3610 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3611 od->v_len = sizeof(s32_t);
3622 od->instance = MIB_OBJECT_SCALAR;
3623 od->access = MIB_OBJECT_READ_ONLY;
3624 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_COUNTER);
3625 od->v_len = sizeof(u32_t);
3628 od->instance = MIB_OBJECT_TAB;
3629 od->access = MIB_OBJECT_READ_ONLY;
3630 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_GAUGE);
3631 od->v_len = sizeof(u32_t);
3635 od->instance = MIB_OBJECT_NONE;
3642 od->instance = MIB_OBJECT_NONE;
3647 tcp_get_value(struct obj_def *od, u16_t len, void *value)
3654 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
3655 id = (u8_t)od->id_inst_ptr[0];
3721 tcpconnentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3731 od->id_inst_len = ident_len;
3732 od->id_inst_ptr = ident;
3740 od->instance = MIB_OBJECT_TAB;
3741 od->access = MIB_OBJECT_READ_WRITE;
3742 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3743 od->v_len = sizeof(s32_t);
3747 od->instance = MIB_OBJECT_TAB;
3748 od->access = MIB_OBJECT_READ_ONLY;
3749 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_IPADDR);
3750 od->v_len = 4;
3754 od->instance = MIB_OBJECT_TAB;
3755 od->access = MIB_OBJECT_READ_ONLY;
3756 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3757 od->v_len = sizeof(s32_t);
3761 od->instance = MIB_OBJECT_NONE;
3768 od->instance = MIB_OBJECT_NONE;
3773 tcpconnentry_get_value(struct obj_def *od, u16_t len, void *value)
3779 ident = od->id_inst_ptr;
3791 udp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3799 od->id_inst_len = ident_len;
3800 od->id_inst_ptr = ident;
3802 od->instance = MIB_OBJECT_SCALAR;
3803 od->access = MIB_OBJECT_READ_ONLY;
3804 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_COUNTER);
3805 od->v_len = sizeof(u32_t);
3810 od->instance = MIB_OBJECT_NONE;
3815 udp_get_value(struct obj_def *od, u16_t len, void *value)
3821 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
3822 id = (u8_t)od->id_inst_ptr[0];
3841 udpentry_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3849 od->id_inst_len = ident_len;
3850 od->id_inst_ptr = ident;
3855 od->instance = MIB_OBJECT_TAB;
3856 od->access = MIB_OBJECT_READ_ONLY;
3857 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_IPADDR);
3858 od->v_len = 4;
3861 od->instance = MIB_OBJECT_TAB;
3862 od->access = MIB_OBJECT_READ_ONLY;
3863 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3864 od->v_len = sizeof(s32_t);
3868 od->instance = MIB_OBJECT_NONE;
3875 od->instance = MIB_OBJECT_NONE;
3880 udpentry_get_value(struct obj_def *od, u16_t len, void *value)
3888 snmp_oidtoip(&od->id_inst_ptr[1], &ip);
3889 LWIP_ASSERT("invalid port", (od->id_inst_ptr[5] >= 0) && (od->id_inst_ptr[5] <= 0xffff));
3890 port = (u16_t)od->id_inst_ptr[5];
3902 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
3903 id = (u8_t)od->id_inst_ptr[0];
3923 snmp_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od)
3932 od->id_inst_len = ident_len;
3933 od->id_inst_ptr = ident;
3966 od->instance = MIB_OBJECT_SCALAR;
3967 od->access = MIB_OBJECT_READ_ONLY;
3968 od->asn_type = (SNMP_ASN1_APPLIC | SNMP_ASN1_PRIMIT | SNMP_ASN1_COUNTER);
3969 od->v_len = sizeof(u32_t);
3972 od->instance = MIB_OBJECT_SCALAR;
3973 od->access = MIB_OBJECT_READ_WRITE;
3974 od->asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
3975 od->v_len = sizeof(s32_t);
3979 od->instance = MIB_OBJECT_NONE;
3986 od->instance = MIB_OBJECT_NONE;
3991 snmp_get_value(struct obj_def *od, u16_t len, void *value)
3997 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
3998 id = (u8_t)od->id_inst_ptr[0];
4091 * @param od is the object definition
4096 snmp_set_test(struct obj_def *od, u16_t len, void *value)
4102 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
4103 id = (u8_t)od->id_inst_ptr[0];
4130 snmp_set_value(struct obj_def *od, u16_t len, void *value)
4135 LWIP_ASSERT("invalid id", (od->id_inst_ptr[0] >= 0) && (od->id_inst_ptr[0] <= 0xff));
4136 id = (u8_t)od->id_inst_ptr[0];