Searched refs:pbuf_stream (Results 1 – 7 of 7) sorted by relevance
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/snmp/ |
A D | snmp_pbuf_stream.c | 49 pbuf_stream->offset = offset; in snmp_pbuf_stream_init() 50 pbuf_stream->length = length; in snmp_pbuf_stream_init() 51 pbuf_stream->pbuf = p; in snmp_pbuf_stream_init() 59 if (pbuf_stream->length == 0) { in snmp_pbuf_stream_read() 63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) { in snmp_pbuf_stream_read() 67 pbuf_stream->offset++; in snmp_pbuf_stream_read() 68 pbuf_stream->length--; in snmp_pbuf_stream_read() 86 if (pbuf_take_at(pbuf_stream->pbuf, buf, buf_len, pbuf_stream->offset) != ERR_OK) { in snmp_pbuf_stream_writebuf() 90 pbuf_stream->offset += buf_len; in snmp_pbuf_stream_writebuf() 91 pbuf_stream->length -= buf_len; in snmp_pbuf_stream_writebuf() [all …]
|
A D | snmp_asn1.c | 72 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, tlv->type)); in snmp_ans1_enc_tlv() 101 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, data)); in snmp_ans1_enc_tlv() 112 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, data)); in snmp_ans1_enc_tlv() 119 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, data)); in snmp_ans1_enc_tlv() 158 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, 0x00)); in snmp_asn1_enc_u32t() 191 PBUF_OP_EXEC(snmp_pbuf_stream_write(pbuf_stream, 0x00)); in snmp_asn1_enc_u64t() 428 PBUF_OP_EXEC(snmp_pbuf_stream_read(pbuf_stream, &data)); in snmp_asn1_dec_tlv() 438 PBUF_OP_EXEC(snmp_pbuf_stream_read(pbuf_stream, &data)); in snmp_asn1_dec_tlv() 490 PBUF_OP_EXEC(snmp_pbuf_stream_read(pbuf_stream, &data)); in snmp_asn1_dec_u32t() 537 PBUF_OP_EXEC(snmp_pbuf_stream_read(pbuf_stream, &data)); in snmp_asn1_dec_u64t() [all …]
|
A D | snmp_msg.c | 613 struct snmp_pbuf_stream pbuf_stream; in snmp_parse_inbound_frame() local 622 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 627 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 855 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 864 snmp_pbuf_stream_seek(&pbuf_stream, tlv.value_len); in snmp_parse_inbound_frame() 873 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 874 IF_PARSE_ASSERT(tlv.value_len <= pbuf_stream.length); in snmp_parse_inbound_frame() 934 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 942 IF_PARSE_EXEC(snmp_asn1_dec_tlv(&pbuf_stream, &tlv)); in snmp_parse_inbound_frame() 1154 request->outbound_pdu_offset = pbuf_stream->offset; in snmp_prepare_outbound_frame() [all …]
|
A D | snmp_traps.c | 369 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_varbind_enc() 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() 415 snmp_ans1_enc_tlv(pbuf_stream, &tlv); in snmp_trap_header_enc() 421 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 | 82 err_t snmp_asn1_dec_tlv(struct snmp_pbuf_stream* pbuf_stream, struct snmp_asn1_tlv* tlv); 83 err_t snmp_asn1_dec_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *value); 84 err_t snmp_asn1_dec_u64t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *value); 85 err_t snmp_asn1_dec_s32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, s32_t *value); 86 err_t snmp_asn1_dec_oid(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t* oid, u8_t* oid_len,… 89 err_t snmp_ans1_enc_tlv(struct snmp_pbuf_stream* pbuf_stream, struct snmp_asn1_tlv* tlv); 96 err_t snmp_asn1_enc_oid(struct snmp_pbuf_stream* pbuf_stream, const u32_t *oid, u16_t oid_len); 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); 99 err_t snmp_asn1_enc_u64t(struct snmp_pbuf_stream* pbuf_stream, u16_t octets_needed, const u32_t* va… [all …]
|
A D | snmp_pbuf_stream.h | 59 err_t snmp_pbuf_stream_init(struct snmp_pbuf_stream* pbuf_stream, struct pbuf* p, u16_t offset, u16… 60 err_t snmp_pbuf_stream_read(struct snmp_pbuf_stream* pbuf_stream, u8_t* data); 61 err_t snmp_pbuf_stream_write(struct snmp_pbuf_stream* pbuf_stream, u8_t data); 62 err_t snmp_pbuf_stream_writebuf(struct snmp_pbuf_stream* pbuf_stream, const void* buf, u16_t buf_le… 63 err_t snmp_pbuf_stream_writeto(struct snmp_pbuf_stream* pbuf_stream, struct snmp_pbuf_stream* targe… 64 err_t snmp_pbuf_stream_seek(struct snmp_pbuf_stream* pbuf_stream, s32_t offset); 65 err_t snmp_pbuf_stream_seek_abs(struct snmp_pbuf_stream* pbuf_stream, u32_t offset);
|
A D | snmp_msg.h | 78 struct snmp_pbuf_stream pbuf_stream; member 186 err_t snmp_append_outbound_varbind(struct snmp_pbuf_stream *pbuf_stream, struct snmp_varbind* varbi…
|
Completed in 14 milliseconds