Lines Matching full:packet
38 * @brief Set of CoAP packet options we are aware of.
42 * that all options must be added to a packet in numeric order.
103 * The packet is a request or response the destination end-point must
110 * The packet is a request or response that doesn't
123 * Rejecting a packet for any reason is done by sending a message
138 * @brief Set of response codes available for a response packet.
310 * @brief Representation of a CoAP Packet.
315 uint16_t max_len; /**< Max CoAP packet data length */
318 uint16_t delta; /**< Used for delta calculation in CoAP packet */
382 uint16_t len; /**< Length of the CoAP packet */
407 * @brief Returns the version present in a CoAP packet.
409 * @param cpkt CoAP packet representation
411 * @return the CoAP version in packet
416 * @brief Returns the type of the CoAP packet.
418 * @param cpkt CoAP packet representation
420 * @return the type of the packet
425 * @brief Returns the token (if any) in the CoAP packet.
427 * @param cpkt CoAP packet representation
431 * @return Token length in the CoAP packet (0 - COAP_TOKEN_MAX_LEN).
436 * @brief Returns the code of the CoAP packet.
438 * @param cpkt CoAP packet representation
440 * @return the code present in the packet
445 * @brief Modifies the code of the CoAP packet.
447 * @param cpkt CoAP packet representation
454 * @brief Returns the message id associated with the CoAP packet.
456 * @param cpkt CoAP packet representation
458 * @return the message id present in the packet
463 * @brief Returns the data pointer and length of the CoAP packet.
465 * @param cpkt CoAP packet representation
489 * @brief Parses the CoAP packet in data, validating it and
492 * @param cpkt Packet to be initialized from received @a data.
493 * @param data Data containing a CoAP packet, its @a data pointer is
494 * positioned on the start of the CoAP packet.
501 * @retval -EBADMSG in case of malformed coap packet header.
511 * @param cpkt Packet to append path and query options for.
519 * @brief Creates a new CoAP Packet from input data.
521 * @param cpkt New packet to be initialized using the storage from @a data.
522 * @param data Data that will contain a CoAP packet information
544 * @param cpkt New packet to be initialized using the storage from @a data.
545 * @param req CoAP request packet that is being acknowledged
546 * @param data Data that will contain a CoAP packet information
561 * @param cpkt New packet to be initialized using the storage from @a data.
562 * @param req CoAP request packet that is being acknowledged
563 * @param data Data that will contain a CoAP packet information
589 * @param cpkt CoAP packet representation
595 * @return The number of options found in packet matching code,
602 * @brief Appends an option to the packet.
607 * @param cpkt Packet to be updated
608 * @param code Option code to add to the packet, see #coap_option_num
610 * packet
619 * @brief Remove an option from the packet.
621 * @param cpkt Packet to be updated
622 * @param code Option code to remove from the packet, see #coap_option_num
642 * @brief Appends an integer value option to the packet.
647 * @param cpkt Packet to be updated
648 * @param code Option code to add to the packet, see #coap_option_num
657 * @brief Append payload marker to CoAP packet
659 * @param cpkt Packet to append the payload marker (0xFF)
666 * @brief Append payload to CoAP packet
668 * @param cpkt Packet to append the payload
669 * @param payload CoAP packet payload
670 * @param payload_len CoAP packet payload len
678 * @brief Check if a CoAP packet is a CoAP request.
680 * @param cpkt Packet to be checked.
682 * @return true if the packet is a request,
691 * @param cpkt Packet received
715 * @param cpkt Packet received
812 * @brief Append BLOCK1 or BLOCK2 option to the packet.
814 * If the CoAP packet is a request then BLOCK1 is appended
817 * @param cpkt Packet to be updated
826 * @brief Check if a descriptive block option is set in the packet.
828 * If the CoAP packet is a request then an available BLOCK1 option
831 * @param cpkt Packet to be checked.
839 * @brief Remove BLOCK1 or BLOCK2 option from the packet.
841 * If the CoAP packet is a request then BLOCK1 is removed
844 * @param cpkt Packet to be updated.
853 * @param cpkt Packet to be checked.
860 * @brief Append BLOCK1 option to the packet.
862 * @param cpkt Packet to be updated
872 * @brief Append BLOCK2 option to the packet.
874 * @param cpkt Packet to be updated
884 * @brief Append SIZE1 option to the packet.
886 * @param cpkt Packet to be updated
896 * @brief Append SIZE2 option to the packet.
898 * @param cpkt Packet to be updated
910 * @param cpkt Packet to be inspected
922 * @param cpkt Packet to be inspected
936 * @param cpkt Packet to be inspected
950 * @param cpkt Packet in which to look for block-wise transfers options
963 * @param cpkt Packet in which to look for block-wise transfers options
979 * @param cpkt Packet in which to look for block-wise transfers options
1171 * @return Pointer to the reply matching the packet received, NULL if