Searched refs:tlv (Results 1 – 7 of 7) sorted by relevance
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/snmp/ |
A D | snmp_msg.c | 614 struct snmp_asn1_tlv tlv; in snmp_parse_inbound_frame() local 623 IF_PARSE_ASSERT((tlv.type == SNMP_ASN1_TYPE_SEQUENCE) && (tlv.value_len == pbuf_stream.length)); in snmp_parse_inbound_frame() 879 switch(tlv.type) { in snmp_parse_inbound_frame() 992 struct snmp_asn1_tlv tlv; in snmp_prepare_outbound_frame() local 1254 struct snmp_asn1_tlv tlv; in snmp_append_outbound_varbind() local 1322 struct snmp_asn1_tlv tlv; in snmp_complete_outbound_frame() local 1584 struct snmp_asn1_tlv tlv; in snmp_vb_enumerator_get_next() local 1597 varbind_len = tlv.value_len; in snmp_vb_enumerator_get_next() 1601 …VB_PARSE_ASSERT((tlv.type == SNMP_ASN1_TYPE_OBJECT_ID) && (SNMP_ASN1_TLV_LENGTH(tlv) < varbind_len… in snmp_vb_enumerator_get_next() 1609 varbind->type = tlv.type; in snmp_vb_enumerator_get_next() [all …]
|
A D | snmp_traps.c | 363 struct snmp_asn1_tlv tlv; in snmp_trap_varbind_enc() local 369 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_varbind_enc() 384 struct snmp_asn1_tlv tlv; in snmp_trap_header_enc() local 388 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() 393 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() 398 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() 403 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() 408 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() 429 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() 435 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() [all …]
|
A D | snmp_asn1.h | 78 #define SNMP_ASN1_TLV_HDR_LENGTH(tlv) ((tlv).type_len + (tlv).length_len) argument 79 #define SNMP_ASN1_TLV_LENGTH(tlv) ((tlv).type_len + (tlv).length_len + (tlv).value_len) argument 80 …SET_TLV_PARAMS(tlv, type_, length_len_, value_len_) do { (tlv).type = (type_); (tlv).type_len = 0;… argument 82 err_t snmp_asn1_dec_tlv(struct snmp_pbuf_stream* pbuf_stream, struct snmp_asn1_tlv* tlv); 89 err_t snmp_ans1_enc_tlv(struct snmp_pbuf_stream* pbuf_stream, struct snmp_asn1_tlv* tlv);
|
A D | snmp_asn1.c | 67 if (tlv->type_len != 0) { in snmp_ans1_enc_tlv() 73 tlv->type_len = 1; in snmp_ans1_enc_tlv() 76 if (tlv->value_len <= 127) { in snmp_ans1_enc_tlv() 85 if (tlv->length_len > 0) { in snmp_ans1_enc_tlv() 429 tlv->type = data; in snmp_asn1_dec_tlv() 435 tlv->type_len = 1; in snmp_asn1_dec_tlv() 441 tlv->length_len = 1; in snmp_asn1_dec_tlv() 442 tlv->value_len = data; in snmp_asn1_dec_tlv() 446 tlv->value_len = 0; in snmp_asn1_dec_tlv() 454 tlv->value_len <<= 8; in snmp_asn1_dec_tlv() [all …]
|
/AliOS-Things-master/components/a2sa/internal/driver/core/ |
A D | control.h | 125 unsigned int tlv[0]; /* first TLV */ member 132 …trol_tlv_rw_t)(struct audio_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int *tlv); 158 } tlv; member 178 } tlv; member 197 int audio_ctl_tlv_ioctl(ctrl_device_t *dev, struct audio_ctl_tlv *tlv, int op_flag);
|
/AliOS-Things-master/components/a2sa/src/driver/core/ |
A D | control.c | 76 kctl->tlv.p = ncontrol->tlv.p; in audio_ctl_new1() 121 LOGD(LOG_TAG, "%s:%d, ----kcontrol->tlv.p: 0x%x", __func__, __LINE__, kcontrol->tlv.p); in audio_ctl_add() 372 int audio_ctl_tlv_ioctl(ctrl_device_t *dev, struct audio_ctl_tlv *tlv, int op_flag) in audio_ctl_tlv_ioctl() argument 377 if(!dev || !tlv) { in audio_ctl_tlv_ioctl() 382 kctl = audio_ctl_find_numid(dev, tlv->numid); in audio_ctl_tlv_ioctl() 388 if(!kctl->tlv.c) { in audio_ctl_tlv_ioctl() 392 ret = kctl->tlv.c(kctl, op_flag, tlv->len, tlv->tlv); in audio_ctl_tlv_ioctl()
|
/AliOS-Things-master/components/linksdk/core/ |
A D | aiot_mqtt_api.c | 706 tlv->type = type; in _core_mqtt_parse_property_element() 707 tlv->len = 1; in _core_mqtt_parse_property_element() 719 tlv->type = type; in _core_mqtt_parse_property_element() 720 tlv->len = 2; in _core_mqtt_parse_property_element() 732 tlv->type = type; in _core_mqtt_parse_property_element() 733 tlv->len = 4; in _core_mqtt_parse_property_element() 752 tlv->type = type; in _core_mqtt_parse_property_element() 769 tlv->type = type; in _core_mqtt_parse_property_element() 848 memset(&tlv, 0, sizeof(tlv)); in _core_mqtt_parse_general_properties() 861 switch (tlv.type) { in _core_mqtt_parse_general_properties() [all …]
|
Completed in 21 milliseconds