Lines Matching refs:value
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);
84 static void interfaces_get_value(struct obj_def *od, u16_t len, void *value);
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);
92 static void atentry_get_value(struct obj_def *od, u16_t len, void *value);
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);
97 static void ip_addrentry_get_value(struct obj_def *od, u16_t len, void *value);
99 static void ip_rteentry_get_value(struct obj_def *od, u16_t len, void *value);
101 static void ip_ntomentry_get_value(struct obj_def *od, u16_t len, void *value);
103 static void icmp_get_value(struct obj_def *od, u16_t len, void *value);
106 static void tcp_get_value(struct obj_def *od, u16_t len, void *value);
109 static void tcpconnentry_get_value(struct obj_def *od, u16_t len, void *value);
113 static void udp_get_value(struct obj_def *od, u16_t len, void *value);
115 static void udpentry_get_value(struct obj_def *od, u16_t len, void *value);
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);
951 * Initializes sysObjectID value.
969 void snmp_add_sysuptime(u32_t value)
971 sysuptime+=value;
974 void snmp_get_sysuptime(u32_t *value)
977 *value = sysuptime;
1029 void snmp_add_ifinoctets(struct netif *ni, u32_t value)
1031 ni->ifinoctets += value;
1049 void snmp_add_ifoutoctets(struct netif *ni, u32_t value)
1051 ni->ifoutoctets += value;
1976 void snmp_add_snmpintotalreqvars(u8_t value)
1978 snmpintotalreqvars += value;
1981 void snmp_add_snmpintotalsetvars(u8_t value)
1983 snmpintotalsetvars += value;
2061 void snmp_set_snmpenableauthentraps(u8_t *value)
2063 if (value != NULL)
2065 snmpenableauthentraps_ptr = value;
2069 void snmp_get_snmpenableauthentraps(u8_t *value)
2071 *value = *snmpenableauthentraps_ptr;
2083 noleafs_get_value(struct obj_def *od, u16_t len, void *value)
2087 LWIP_UNUSED_ARG(value);
2091 noleafs_set_test(struct obj_def *od, u16_t len, void *value)
2095 LWIP_UNUSED_ARG(value);
2101 noleafs_set_value(struct obj_def *od, u16_t len, void *value)
2105 LWIP_UNUSED_ARG(value);
2190 * Returns system object value.
2194 * @param len return value space (in bytes)
2195 * @param value points to (varbind) space to copy value into.
2198 system_get_value(struct obj_def *od, u16_t len, void *value)
2207 ocstrncpy((u8_t*)value, sysdescr_ptr, len);
2210 objectidncpy((s32_t*)value, (s32_t*)sysobjid.id, (u8_t)(len / sizeof(s32_t)));
2214 snmp_get_sysuptime((u32_t*)value);
2218 ocstrncpy((u8_t*)value, syscontact_ptr, len);
2221 ocstrncpy((u8_t*)value, sysname_ptr, len);
2224 ocstrncpy((u8_t*)value, syslocation_ptr, len);
2228 s32_t *sint_ptr = (s32_t*)value;
2236 system_set_test(struct obj_def *od, u16_t len, void *value)
2240 LWIP_UNUSED_ARG(value);
2272 system_set_value(struct obj_def *od, u16_t len, void *value)
2282 ocstrncpy(syscontact_ptr, (u8_t*)value, len);
2286 ocstrncpy(sysname_ptr, (u8_t*)value, len);
2290 ocstrncpy(syslocation_ptr, (u8_t*)value, len);
2327 * Returns interfaces.ifnumber object value.
2331 * @param len return value space (in bytes)
2332 * @param value points to (varbind) space to copy value into.
2335 interfaces_get_value(struct obj_def *od, u16_t len, void *value)
2340 s32_t *sint_ptr = (s32_t*)value;
2453 * Returns ifentry object value.
2457 * @param len return value space (in bytes)
2458 * @param value points to (varbind) space to copy value into.
2461 ifentry_get_value(struct obj_def *od, u16_t len, void *value)
2473 s32_t *sint_ptr = (s32_t*)value;
2478 ocstrncpy((u8_t*)value, (u8_t*)netif->name, len);
2482 s32_t *sint_ptr = (s32_t*)value;
2488 s32_t *sint_ptr = (s32_t*)value;
2494 u32_t *uint_ptr = (u32_t*)value;
2499 ocstrncpy((u8_t*)value, netif->hwaddr, len);
2503 s32_t *sint_ptr = (s32_t*)value;
2523 s32_t *sint_ptr = (s32_t*)value;
2536 u32_t *uint_ptr = (u32_t*)value;
2542 u32_t *uint_ptr = (u32_t*)value;
2548 u32_t *uint_ptr = (u32_t*)value;
2554 u32_t *uint_ptr = (u32_t*)value;
2560 u32_t *uint_ptr = (u32_t*)value;
2568 u32_t *uint_ptr = (u32_t*)value;
2574 u32_t *uint_ptr = (u32_t*)value;
2580 u32_t *uint_ptr = (u32_t*)value;
2586 u32_t *uint_ptr = (u32_t*)value;
2592 u32_t *uint_ptr = (u32_t*)value;
2599 u32_t *uint_ptr = (u32_t*)value;
2606 u32_t *uint_ptr = (u32_t*)value;
2611 objectidncpy((s32_t*)value, (s32_t*)ifspecific.id, (u8_t)(len / sizeof(s32_t)));
2618 ifentry_set_test(struct obj_def *od, u16_t len, void *value)
2631 s32_t *sint_ptr = (s32_t*)value;
2641 ifentry_set_value(struct obj_def *od, u16_t len, void *value)
2653 s32_t *sint_ptr = (s32_t*)value;
2721 atentry_get_value(struct obj_def *od, u16_t len, void *value)
2732 LWIP_UNUSED_ARG(value);/* if !LWIP_ARP */
2746 s32_t *sint_ptr = (s32_t*)value;
2752 struct eth_addr *dst = (struct eth_addr*)value;
2759 ip_addr_t *dst = (ip_addr_t*)value;
2836 ip_get_value(struct obj_def *od, u16_t len, void *value)
2847 s32_t *sint_ptr = (s32_t*)value;
2859 s32_t *sint_ptr = (s32_t*)value;
2865 u32_t *uint_ptr = (u32_t*)value;
2871 u32_t *uint_ptr = (u32_t*)value;
2877 u32_t *uint_ptr = (u32_t*)value;
2883 u32_t *uint_ptr = (u32_t*)value;
2889 u32_t *uint_ptr = (u32_t*)value;
2895 u32_t *uint_ptr = (u32_t*)value;
2901 u32_t *uint_ptr = (u32_t*)value;
2907 u32_t *uint_ptr = (u32_t*)value;
2913 u32_t *uint_ptr = (u32_t*)value;
2919 u32_t *uint_ptr = (u32_t*)value;
2925 s32_t *sint_ptr = (s32_t*)value;
2935 u32_t *uint_ptr = (u32_t*)value;
2941 u32_t *uint_ptr = (u32_t*)value;
2947 u32_t *uint_ptr = (u32_t*)value;
2953 u32_t *uint_ptr = (u32_t*)value;
2959 u32_t *uint_ptr = (u32_t*)value;
2965 u32_t *uint_ptr = (u32_t*)value;
2972 u32_t *uint_ptr = (u32_t*)value;
2980 * Test ip object value before setting.
2983 * @param len return value space (in bytes)
2984 * @param value points to (varbind) space to copy value from.
2986 * @note we allow set if the value matches the hardwired value,
2990 ip_set_test(struct obj_def *od, u16_t len, void *value)
2993 s32_t *sint_ptr = (s32_t*)value;
3070 ip_addrentry_get_value(struct obj_def *od, u16_t len, void *value)
3094 ip_addr_t *dst = (ip_addr_t*)value;
3100 s32_t *sint_ptr = (s32_t*)value;
3106 ip_addr_t *dst = (ip_addr_t*)value;
3112 s32_t *sint_ptr = (s32_t*)value;
3121 s32_t *sint_ptr = (s32_t*)value;
3211 ip_rteentry_get_value(struct obj_def *od, u16_t len, void *value)
3244 ip_addr_t *dst = (ip_addr_t*)value;
3260 s32_t *sint_ptr = (s32_t*)value;
3267 s32_t *sint_ptr = (s32_t*)value;
3286 s32_t *sint_ptr = (s32_t*)value;
3293 ip_addr_t *dst = (ip_addr_t*)value;
3309 s32_t *sint_ptr = (s32_t*)value;
3325 s32_t *sint_ptr = (s32_t*)value;
3332 s32_t *sint_ptr = (s32_t*)value;
3340 ip_addr_t *dst = (ip_addr_t*)value;
3355 objectidncpy((s32_t*)value, (s32_t*)iprouteinfo.id, (u8_t)(len / sizeof(s32_t)));
3412 ip_ntomentry_get_value(struct obj_def *od, u16_t len, void *value)
3423 LWIP_UNUSED_ARG(value);/* if !LWIP_ARP */
3437 s32_t *sint_ptr = (s32_t*)value;
3443 struct eth_addr *dst = (struct eth_addr*)value;
3450 ip_addr_t *dst = (ip_addr_t*)value;
3457 s32_t *sint_ptr = (s32_t*)value;
3492 icmp_get_value(struct obj_def *od, u16_t len, void *value)
3494 u32_t *uint_ptr = (u32_t*)value;
3647 tcp_get_value(struct obj_def *od, u16_t len, void *value)
3649 u32_t *uint_ptr = (u32_t*)value;
3650 s32_t *sint_ptr = (s32_t*)value;
3662 /* @todo not the actual value, a guess,
3667 /* @todo not the actual value, a guess,
3773 tcpconnentry_get_value(struct obj_def *od, u16_t len, void *value)
3815 udp_get_value(struct obj_def *od, u16_t len, void *value)
3817 u32_t *uint_ptr = (u32_t*)value;
3880 udpentry_get_value(struct obj_def *od, u16_t len, void *value)
3908 ip_addr_t *dst = (ip_addr_t*)value;
3914 s32_t *sint_ptr = (s32_t*)value;
3991 snmp_get_value(struct obj_def *od, u16_t len, void *value)
3993 u32_t *uint_ptr = (u32_t*)value;
4089 * Test snmp object value before setting.
4092 * @param len return value space (in bytes)
4093 * @param value points to (varbind) space to copy value from.
4096 snmp_set_test(struct obj_def *od, u16_t len, void *value)
4107 s32_t *sint_ptr = (s32_t*)value;
4119 /* const or hardwired value */
4130 snmp_set_value(struct obj_def *od, u16_t len, void *value)
4140 /* @todo @fixme: which kind of pointer is 'value'? s32_t or u8_t??? */
4141 u8_t *ptr = (u8_t*)value;