Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 5 of 5) sorted by relevance

/lib/liblwip/src/core/snmp/
Dmsg_out.c73 static u16_t snmp_varbind_list_enc(struct snmp_varbind_root *root, struct pbuf *p, u16_t ofs);
142 u16_t ofs; in snmp_send_response() local
147 ofs = snmp_resp_header_enc(m_stat, p); in snmp_send_response()
148 snmp_varbind_list_enc(&m_stat->outvb, p, ofs); in snmp_send_response()
257 u16_t ofs; in snmp_send_trap() local
260 ofs = snmp_trap_header_enc(&trap_msg, p); in snmp_send_trap()
261 snmp_varbind_list_enc(&trap_msg.outvb, p, ofs); in snmp_send_trap()
482 u16_t ofs; in snmp_resp_header_enc() local
484 ofs = 0; in snmp_resp_header_enc()
485 snmp_asn1_enc_type(p, ofs, (SNMP_ASN1_UNIV | SNMP_ASN1_CONSTR | SNMP_ASN1_SEQ)); in snmp_resp_header_enc()
[all …]
Dasn1_dec.c52 snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type) in snmp_asn1_dec_type() argument
62 if (ofs < plen) in snmp_asn1_dec_type()
65 msg_ptr += ofs - base; in snmp_asn1_dec_type()
85 snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length) in snmp_asn1_dec_length() argument
95 if (ofs < plen) in snmp_asn1_dec_length()
98 msg_ptr += ofs - base; in snmp_asn1_dec_length()
122 ofs += 1; in snmp_asn1_dec_length()
123 if (ofs >= plen) in snmp_asn1_dec_length()
157 ofs += 1; in snmp_asn1_dec_length()
158 if (ofs >= plen) in snmp_asn1_dec_length()
[all …]
Dasn1_enc.c181 snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type) in snmp_asn1_enc_type() argument
191 if (ofs < plen) in snmp_asn1_enc_type()
194 msg_ptr += ofs - base; in snmp_asn1_enc_type()
213 snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length) in snmp_asn1_enc_length() argument
223 if (ofs < plen) in snmp_asn1_enc_length()
226 msg_ptr += ofs - base; in snmp_asn1_enc_length()
236 ofs += 1; in snmp_asn1_enc_length()
237 if (ofs >= plen) in snmp_asn1_enc_length()
262 ofs += 1; in snmp_asn1_enc_length()
263 if (ofs >= plen) in snmp_asn1_enc_length()
[all …]
Dmsg_in.c62 static err_t snmp_pdu_header_check(struct pbuf *p, u16_t ofs, u16_t pdu_len, u16_t *ofs_ret, struct…
63 static err_t snmp_pdu_dec_varbindlist(struct pbuf *p, u16_t ofs, u16_t *ofs_ret, struct snmp_msg_ps…
916 snmp_pdu_header_check(struct pbuf *p, u16_t ofs, u16_t pdu_len, u16_t *ofs_ret, struct snmp_msg_pst… in snmp_pdu_header_check() argument
924 ofs_base = ofs; in snmp_pdu_header_check()
925 snmp_asn1_dec_type(p, ofs, &type); in snmp_pdu_header_check()
926 derr = snmp_asn1_dec_length(p, ofs+1, &len_octets, &len); in snmp_pdu_header_check()
934 ofs += (1 + len_octets); in snmp_pdu_header_check()
935 snmp_asn1_dec_type(p, ofs, &type); in snmp_pdu_header_check()
936 derr = snmp_asn1_dec_length(p, ofs+1, &len_octets, &len); in snmp_pdu_header_check()
943 derr = snmp_asn1_dec_s32t(p, ofs + 1 + len_octets, len, &version); in snmp_pdu_header_check()
[all …]
/lib/liblwip/src/include/lwip/
Dsnmp_asn1.h77 err_t snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type);
78 err_t snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length);
79 err_t snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, u32_t *value);
80 err_t snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, s32_t *value);
81 err_t snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid);
82 err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_t *raw);
88 err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type);
89 err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length);
90 err_t snmp_asn1_enc_u32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, u32_t value);
91 err_t snmp_asn1_enc_s32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, s32_t value);
[all …]