Lines Matching refs:tlv_offset
1765 necp_buffer_get_tlv_type(u_int8_t *buffer, int tlv_offset) in necp_buffer_get_tlv_type() argument
1773 type = (u_int8_t *)((u_int8_t *)buffer + tlv_offset); in necp_buffer_get_tlv_type()
1778 necp_buffer_get_tlv_length(u_int8_t *buffer, int tlv_offset) in necp_buffer_get_tlv_length() argument
1786 length = (u_int32_t *)(void *)((u_int8_t *)buffer + tlv_offset + sizeof(u_int8_t)); in necp_buffer_get_tlv_length()
1791 necp_buffer_get_tlv_value(u_int8_t *buffer, int tlv_offset, u_int32_t *value_size) in necp_buffer_get_tlv_value() argument
1794 u_int32_t length = necp_buffer_get_tlv_length(buffer, tlv_offset); in necp_buffer_get_tlv_value()
1803 value = (u_int8_t *)((u_int8_t *)buffer + tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t)); in necp_buffer_get_tlv_value()
1867 int tlv_offset, u_int32_t out_buffer_length, void *out_buffer, u_int32_t *value_size) in necp_get_tlv_at_offset() argument
1877 if (tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t) > buffer_length) { in necp_get_tlv_at_offset()
1879 buffer_length, tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t)); in necp_get_tlv_at_offset()
1884 u_int32_t tlv_length = necp_buffer_get_tlv_length(buffer, tlv_offset); in necp_get_tlv_at_offset()
1885 if (tlv_length > buffer_length - (tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t))) { in necp_get_tlv_at_offset()
1887 tlv_length, buffer_length, tlv_offset + sizeof(u_int8_t) + sizeof(u_int32_t) + tlv_length); in necp_get_tlv_at_offset()
1900 u_int8_t *tlv_value = necp_buffer_get_tlv_value(buffer, tlv_offset, NULL); in necp_get_tlv_at_offset()
1924 int tlv_offset = necp_find_tlv(buffer, buffer_length, offset, type, &error, 0); in necp_get_tlv() local
1925 if (tlv_offset < 0) { in necp_get_tlv()
1929 return necp_get_tlv_at_offset(buffer, buffer_length, tlv_offset, buff_len, buff, value_size); in necp_get_tlv()