Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nanocoap: Make coap_block_finish more resilient #20000

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Oct 19, 2023

  1. nanocoap: Split option finding from coap_find_option

    This adds an internal function to find options in a CoAP packet without
    modifying the coap_pkt_t struct
    bergzand committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    faeef30 View commit details
    Browse the repository at this point in the history
  2. nanocoap: Make coap_block_finish more resilient

    This API change removes the error prone nature of coap_block_finish and
    related functions. Before this change the position of the block-wise
    options in the coap packet buffer was not allowed to change or the
    coap_block_finish function would update the wrong byte in the packet
    buffer.
    
    After this change the block option is looked up dynamically from the
    packet buffer, ensuring that if the position got changed the function
    would still behave correctly.
    bergzand committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    798737a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4e0812f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d4b125c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    80dbf75 View commit details
    Browse the repository at this point in the history