mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
fixed passing u16_t 'snmp_varbind->value_len' to functions taking an u8_t only
This commit is contained in:
parent
2b93ef1d75
commit
5bd262f9e9
@ -139,7 +139,7 @@ snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed)
|
|||||||
* @param octets_needed points to the return value
|
* @param octets_needed points to the return value
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
snmp_asn1_enc_oid_cnt(u8_t ident_len, const s32_t *ident, u16_t *octets_needed)
|
snmp_asn1_enc_oid_cnt(u16_t ident_len, const s32_t *ident, u16_t *octets_needed)
|
||||||
{
|
{
|
||||||
s32_t sub_id;
|
s32_t sub_id;
|
||||||
u8_t cnt;
|
u8_t cnt;
|
||||||
@ -435,7 +435,7 @@ snmp_asn1_enc_s32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, s32_t value)
|
|||||||
* @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode
|
* @return ERR_OK if successful, ERR_ARG if we can't (or won't) encode
|
||||||
*/
|
*/
|
||||||
err_t
|
err_t
|
||||||
snmp_asn1_enc_oid(struct pbuf *p, u16_t ofs, u8_t ident_len, const s32_t *ident)
|
snmp_asn1_enc_oid(struct pbuf *p, u16_t ofs, u16_t ident_len, const s32_t *ident)
|
||||||
{
|
{
|
||||||
u16_t plen, base;
|
u16_t plen, base;
|
||||||
u8_t *msg_ptr;
|
u8_t *msg_ptr;
|
||||||
|
@ -84,12 +84,12 @@ err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_
|
|||||||
void snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed);
|
void snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed);
|
||||||
void snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed);
|
void snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed);
|
||||||
void snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed);
|
void snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed);
|
||||||
void snmp_asn1_enc_oid_cnt(u8_t ident_len, const s32_t *ident, u16_t *octets_needed);
|
void snmp_asn1_enc_oid_cnt(u16_t ident_len, const s32_t *ident, u16_t *octets_needed);
|
||||||
err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type);
|
err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type);
|
||||||
err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length);
|
err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length);
|
||||||
err_t snmp_asn1_enc_u32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, u32_t value);
|
err_t snmp_asn1_enc_u32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, u32_t value);
|
||||||
err_t snmp_asn1_enc_s32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, s32_t value);
|
err_t snmp_asn1_enc_s32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, s32_t value);
|
||||||
err_t snmp_asn1_enc_oid(struct pbuf *p, u16_t ofs, u8_t ident_len, const s32_t *ident);
|
err_t snmp_asn1_enc_oid(struct pbuf *p, u16_t ofs, u16_t ident_len, const s32_t *ident);
|
||||||
err_t snmp_asn1_enc_raw(struct pbuf *p, u16_t ofs, u16_t raw_len, const u8_t *raw);
|
err_t snmp_asn1_enc_raw(struct pbuf *p, u16_t ofs, u16_t raw_len, const u8_t *raw);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -90,7 +90,7 @@ struct snmp_varbind
|
|||||||
|
|
||||||
/* object value ASN1 type */
|
/* object value ASN1 type */
|
||||||
u8_t value_type;
|
u8_t value_type;
|
||||||
/* object value length (in u8_t) */
|
/* object value length */
|
||||||
u16_t value_len;
|
u16_t value_len;
|
||||||
/* object value */
|
/* object value */
|
||||||
void *value;
|
void *value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user