Searched refs:length_len (Results 1 – 3 of 3) sorted by relevance
77 u8_t length_len; /* indicates how many bytes are required to encode the 'value_len' field */ member80 #define SNMP_ASN1_TLV_HDR_LENGTH(tlv) ((tlv).type_len + (tlv).length_len)81 #define SNMP_ASN1_TLV_LENGTH(tlv) ((tlv).type_len + (tlv).length_len + (tlv).value_len)82 …len_, value_len_) do { (tlv).type = (type_); (tlv).type_len = 0; (tlv).length_len = (length_len_);…
85 if (tlv->length_len > 0) { in snmp_ans1_enc_tlv()86 if (tlv->length_len < length_bytes_required) { in snmp_ans1_enc_tlv()91 length_bytes_required = tlv->length_len; in snmp_ans1_enc_tlv()93 tlv->length_len = length_bytes_required; in snmp_ans1_enc_tlv()374 tlv->length_len = 1; in snmp_asn1_dec_tlv()381 tlv->length_len = length_bytes + 1; /* this byte + defined number of length bytes following */ in snmp_asn1_dec_tlv()
1918 …enumerator->pbuf_stream), tlv.value_len, (u32_t *)varbind->value, &tlv.length_len, SNMP_MAX_OBJ_ID… in snmp_vb_enumerator_get_next()1923 varbind->value_len = tlv.length_len * sizeof(u32_t); in snmp_vb_enumerator_get_next()