Lines Matching refs:coap_packet

68 static int insert_option(struct coap_packet *cpkt, uint16_t code, const uint8_t *value,
71 static inline void encode_u8(struct coap_packet *cpkt, uint16_t offset, uint8_t data) in encode_u8()
77 static inline void encode_be16(struct coap_packet *cpkt, uint16_t offset, uint16_t data) in encode_be16()
84 static inline void encode_buffer(struct coap_packet *cpkt, uint16_t offset, const uint8_t *data, in encode_buffer()
91 static bool enough_space(struct coap_packet *cpkt, const uint16_t bytes_to_add) in enough_space()
96 static inline bool append_u8(struct coap_packet *cpkt, uint8_t data) in append_u8()
107 static inline bool insert_u8(struct coap_packet *cpkt, uint8_t data, uint16_t offset) in insert_u8()
120 static inline bool append_be16(struct coap_packet *cpkt, uint16_t data) in append_be16()
131 static inline bool insert_be16(struct coap_packet *cpkt, uint16_t data, size_t offset) in insert_be16()
144 static inline bool append(struct coap_packet *cpkt, const uint8_t *data, uint16_t len) in append()
155 static inline bool insert(struct coap_packet *cpkt, const uint8_t *data, uint16_t len, in insert()
169 int coap_packet_init(struct coap_packet *cpkt, uint8_t *data, uint16_t max_len, in coap_packet_init()
219 int coap_ack_init(struct coap_packet *cpkt, const struct coap_packet *req, in coap_ack_init()
235 int coap_rst_init(struct coap_packet *cpkt, const struct coap_packet *req, in coap_rst_init()
281 static int encode_option(struct coap_packet *cpkt, uint16_t code, const uint8_t *value, in encode_option()
344 int coap_packet_append_option(struct coap_packet *cpkt, uint16_t code, in coap_packet_append_option()
378 int coap_append_option_int(struct coap_packet *cpkt, uint16_t code, in coap_append_option_int()
426 int coap_packet_append_payload_marker(struct coap_packet *cpkt) in coap_packet_append_payload_marker()
431 int coap_packet_append_payload(struct coap_packet *cpkt, const uint8_t *payload, in coap_packet_append_payload()
640 static void remove_option_data(struct coap_packet *cpkt, in remove_option_data()
654 static int remove_middle_option(struct coap_packet *cpkt, in remove_middle_option()
684 int coap_packet_remove_option(struct coap_packet *cpkt, uint16_t code) in coap_packet_remove_option()
745 int coap_packet_parse(struct coap_packet *cpkt, uint8_t *data, uint16_t len, in coap_packet_parse()
813 int coap_packet_set_path(struct coap_packet *cpkt, const char *path) in coap_packet_set_path()
915 int coap_find_options(const struct coap_packet *cpkt, uint16_t code, in coap_find_options()
954 uint8_t coap_header_get_version(const struct coap_packet *cpkt) in coap_header_get_version()
963 uint8_t coap_header_get_type(const struct coap_packet *cpkt) in coap_header_get_type()
972 static uint8_t __coap_header_get_code(const struct coap_packet *cpkt) in __coap_header_get_code()
981 int coap_header_set_code(const struct coap_packet *cpkt, uint8_t code) in coap_header_set_code()
991 uint8_t coap_header_get_token(const struct coap_packet *cpkt, uint8_t *token) in coap_header_get_token()
1011 uint8_t coap_header_get_code(const struct coap_packet *cpkt) in coap_header_get_code()
1060 uint16_t coap_header_get_id(const struct coap_packet *cpkt) in coap_header_get_id()
1069 const uint8_t *coap_packet_get_payload(const struct coap_packet *cpkt, uint16_t *len) in coap_packet_get_payload()
1166 static inline bool is_empty_message(const struct coap_packet *cpkt) in is_empty_message()
1171 bool coap_packet_is_request(const struct coap_packet *cpkt) in coap_packet_is_request()
1178 int coap_handle_request_len(struct coap_packet *cpkt, in coap_handle_request_len()
1213 int coap_handle_request(struct coap_packet *cpkt, in coap_handle_request()
1249 int coap_append_descriptive_block_option(struct coap_packet *cpkt, struct coap_block_context *ctx) in coap_append_descriptive_block_option()
1258 bool coap_has_descriptive_block_option(struct coap_packet *cpkt) in coap_has_descriptive_block_option()
1267 int coap_remove_descriptive_block_option(struct coap_packet *cpkt) in coap_remove_descriptive_block_option()
1276 bool coap_block_has_more(struct coap_packet *cpkt) in coap_block_has_more()
1292 int coap_append_block1_option(struct coap_packet *cpkt, in coap_append_block1_option()
1313 int coap_append_block2_option(struct coap_packet *cpkt, in coap_append_block2_option()
1333 int coap_append_size1_option(struct coap_packet *cpkt, in coap_append_size1_option()
1339 int coap_append_size2_option(struct coap_packet *cpkt, in coap_append_size2_option()
1345 int coap_get_option_int(const struct coap_packet *cpkt, uint16_t code) in coap_get_option_int()
1361 int coap_get_block1_option(const struct coap_packet *cpkt, bool *has_more, uint32_t *block_number) in coap_get_block1_option()
1375 int coap_get_block2_option(const struct coap_packet *cpkt, bool *has_more, in coap_get_block2_option()
1390 int insert_option(struct coap_packet *cpkt, uint16_t code, const uint8_t *value, uint16_t len) in insert_option()
1519 int coap_update_from_block(const struct coap_packet *cpkt, in coap_update_from_block()
1546 int coap_next_block_for_option(const struct coap_packet *cpkt, in coap_next_block_for_option()
1578 size_t coap_next_block(const struct coap_packet *cpkt, in coap_next_block()
1591 const struct coap_packet *request, in coap_pending_init()
1677 const struct coap_packet *response, in coap_pending_received()
1805 const struct coap_packet *response, in coap_response_received()
1855 const struct coap_packet *request) in coap_reply_init()
1909 bool coap_request_is_observe(const struct coap_packet *request) in coap_request_is_observe()
1915 const struct coap_packet *request, in coap_observer_init()