Lines Matching defs:length

782   IF_PARSE_ASSERT((tlv.type == SNMP_ASN1_TYPE_SEQUENCE) && (tlv.value_len == pbuf_stream.length));
943 * 3) if msgAuthoritativeEngineID is unknown, zero-length or too long:
1152 IF_PARSE_ASSERT(tlv.value_len <= pbuf_stream.length);
1153 request->inbound_padding_len = pbuf_stream.length - tlv.value_len;
1256 IF_PARSE_ASSERT((tlv.type == SNMP_ASN1_TYPE_SEQUENCE) && (tlv.value_len <= pbuf_stream.length));
1259 request->inbound_varbind_len = pbuf_stream.length - request->inbound_padding_len;
1399 /* End of msgSecurityParameters, so we can calculate the length of this sequence later */
1463 /** Calculate the length of a varbind list */
1544 /* check length already before adding first data because in case of GetBulk,
1547 if ((1 + len.vb_len_len + len.vb_value_len) > pbuf_stream->length) {
1685 /* complete missing length in 'Message' sequence ; 'Message' tlv is located at the beginning (offset 0) */
1692 /* complete missing length in 'globalData' sequence */
1699 /* complete missing length in 'msgSecurityParameters' sequence */
1710 /* complete missing length in scoped PDU sequence */
1717 /* complete missing length in 'PDU' sequence */
1777 /* complete missing length in 'VarBindList' sequence ; 'VarBindList' tlv is located directly before varbind offset */
1789 /* complete missing length in PDU sequence */
1854 snmp_vb_enumerator_init(struct snmp_varbind_enumerator *enumerator, struct pbuf *p, u16_t offset, u16_t length)
1856 snmp_pbuf_stream_init(&(enumerator->pbuf_stream), p, offset, length);
1870 if (enumerator->pbuf_stream.length == 0) {
1877 VB_PARSE_ASSERT((tlv.type == SNMP_ASN1_TYPE_SEQUENCE) && (tlv.value_len <= enumerator->pbuf_stream.length));
1882 VB_PARSE_ASSERT((tlv.type == SNMP_ASN1_TYPE_OBJECT_ID) && (SNMP_ASN1_TLV_LENGTH(tlv) < varbind_len) && (tlv.value_len < enumerator->pbuf_stream.length));
1889 VB_PARSE_ASSERT((SNMP_ASN1_TLV_LENGTH(tlv) == varbind_len) && (tlv.value_len <= enumerator->pbuf_stream.length));