Searched refs:octets_needed (Results 1 – 2 of 2) sorted by relevance
/third_party/lwip/src/apps/snmp/ |
D | snmp_asn1.c | 151 snmp_asn1_enc_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t octets_needed, u32_t value) in snmp_asn1_enc_u32t() argument 153 if (octets_needed > 5) { in snmp_asn1_enc_u32t() 156 if (octets_needed == 5) { in snmp_asn1_enc_u32t() 159 octets_needed--; in snmp_asn1_enc_u32t() 162 while (octets_needed > 1) { in snmp_asn1_enc_u32t() 163 octets_needed--; in snmp_asn1_enc_u32t() 164 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, (u8_t)(value >> (octets_needed << 3)))); in snmp_asn1_enc_u32t() 183 snmp_asn1_enc_s32t(struct snmp_pbuf_stream *pbuf_stream, u16_t octets_needed, s32_t value) in snmp_asn1_enc_s32t() argument 185 while (octets_needed > 1) { in snmp_asn1_enc_s32t() 186 octets_needed--; in snmp_asn1_enc_s32t() [all …]
|
D | snmp_asn1.h | 92 void snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed); 93 void snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed); 94 void snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed); 95 void snmp_asn1_enc_oid_cnt(const u32_t *oid, u16_t oid_len, u16_t *octets_needed); 97 err_t snmp_asn1_enc_s32t(struct snmp_pbuf_stream *pbuf_stream, u16_t octets_needed, s32_t value); 98 err_t snmp_asn1_enc_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t octets_needed, u32_t value); 103 void snmp_asn1_enc_u64t_cnt(u64_t value, u16_t *octets_needed); 104 err_t snmp_asn1_enc_u64t(struct snmp_pbuf_stream *pbuf_stream, u16_t octets_needed, u64_t value);
|