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

Upmerge to 6edb06e #121

Merged
merged 103 commits into from
Nov 9, 2023
Merged

Upmerge to 6edb06e #121

merged 103 commits into from
Nov 9, 2023

Commits on Sep 12, 2023

  1. [include] remove include of core config file (#9417)

    The core config file shouldn't be included in public API headers
    because they will be included from high level project code (like
    ot-br-posix) and the config file cannot be located if included here.
    Irving-cl authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    694528a View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. [address-resolver] remove cache entry if its RLOC16 is unreachable (#…

    …9411)
    
    This commit updates `AddressResolver::Resolve()` to validate that the
    associated RLOC16 is reachable in the sense that a valid next hop can
    be found towards it, before using a matching cache entry in
    `mCachedList` or `mSnoopedList`. If the RLOC16 is not reachable, the
    cache entry is removed to trigger a new address query.
    abtink authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    45727d3 View commit details
    Browse the repository at this point in the history
  2. [mac] fix channel switching issue during energy scan (#9405)

    - This commit resolves inconsistency between Host and RCP channel on
      scan energy when network not created.
    - Added fix in MAC layer to update the channel on scan energy.
    hastigondaliya authored Sep 13, 2023
    Configuration menu
    Copy the full SHA
    31df636 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. [url] add methods to parse parameters from url (#9392)

    This commit adds methods to parse parameter values directly from the
    url, moves the url unit test to the test/unit, and updates the url
    processing methods in posix platform.
    zhanglongxia authored Sep 14, 2023
    Configuration menu
    Copy the full SHA
    20a12eb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df010bc View commit details
    Browse the repository at this point in the history
  3. [posix] add a flag to turn posix multicast routing feature on/off (#9…

    …412)
    
    This commit adds a separate flag to be able to turn the posix part of
    multicast routing implementation off/on.
    
    The new
    OPENTHREAD_POSIX_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE flag
    guards the feature of posix multicast routing using MFC(multicast
    forwarding cache) in MRT(multicast routing table).
    
    The existing
    OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE continues
    to guard the core multicast routing feature, for example handling the
    MLR.req message and the multicast listeners table.
    
    In a system where it has its own multicast routing support for packet
    forwarding between Thread network and AIL, it should set
    OPENTHREAD_POSIX_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE to 0.
    sunytt authored Sep 14, 2023
    Configuration menu
    Copy the full SHA
    8ed949e View commit details
    Browse the repository at this point in the history
  4. [netdata] remove unallocated router ID entries on recovery after rese…

    …t (#9421)
    
    This commit updates `HandleNetworkDataRestoredAfterReset()` which is
    called when a leader device is reset and recovers the Network Data
    from other routers. With the new code, leader will now check and
    remove entries in the restored Network Data that are from any
    currently unallocated router ID.
    
    This change acts as a safeguard against an edge case where the leader
    is reset at an inopportune time, such as right after it removed an
    allocated router ID and sent MLE advertisement but before it got the
    chance to send the updated Network Data to other routers.
    abtink authored Sep 14, 2023
    Configuration menu
    Copy the full SHA
    b5b9342 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. [firewall] implement packet filtering in OT core (#9402)

    This commit implements the packet logic in OT core. It aims to have
    the same effect as what's already achieved by our iptables-based
    firewall. Instead of leveraging iptables, this commit filters the
    border routing packets in user space by checking the
    source/destination addresses of a packet.
    
    This commit also adds a job to do BR regression test when this feature
    is enabled and iptables-based firewall is disabled.
    superwhd authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    a383e36 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. [posix] add channel mask configurations to configuration file (#9391)

    This commit allows developers to set the preferred channel mask and
    the supported channel mask in the configuration file. The posix
    platform selects channel masks from the configuration file based on
    the region code when the region code is updated.
    zhanglongxia authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    2a502ab View commit details
    Browse the repository at this point in the history
  2. [spinel] save MAC frame counter to a local variable (#9407)

    This commit saves the MAC counter to a local variable to avoid calling
    the core function Get<Settings>().Read() in radio_spinel_impl.hpp. This
    is useful when spinel module is used as a lib in other projects.
    zhanglongxia authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    ea61838 View commit details
    Browse the repository at this point in the history
  3. github-actions: bump actions/checkout from 3.6.0 to 4.0.0 (#9429)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@f43a0e5...3df4ab1)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    5f8f05c View commit details
    Browse the repository at this point in the history
  4. [border-agent] smaller enhancements (#9432)

    This commit contains smaller changes in `BorderAgent` class:
    
    - Define `kUdpPort` as a private constants in `BorderAgent` class.
    - Add `SendMessage()` method to send message through `SecureAgent`.
    - Add `LogError()` as a method so the correct log module is used.
    - Remove unused `mMessageInfo` member variable.
    - Harmonize log messages.
    abtink authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    851e00f View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Configuration menu
    Copy the full SHA
    07c56c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    21ac9f5 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. [posix] update the default channel masks in the configuration file (#…

    …9443)
    
    The default supported channel mask is set to 0x7fff000 in the default
    configuration file. The dbus client test case sets the channel to 11
    which is not valid in the supported channel mask. It causes the CI test
    failures in openthread/ot-br-posix#2027.
    
    This commit updates the default supported and preferred channel masks
    in the configuration file to avoid the CI test failures.
    zhanglongxia authored Sep 20, 2023
    Configuration menu
    Copy the full SHA
    df12824 View commit details
    Browse the repository at this point in the history
  2. [border-agent] simplify ForwardContext allocation and ownership (#9…

    …444)
    
    This commit updates `ForwardContext` to be `Heap::Allocatable` and
    uses `OwnerPtr` to simplify the ownership (and freeing) of allocated
    `ForwardContext` objects.
    abtink authored Sep 20, 2023
    Configuration menu
    Copy the full SHA
    753b305 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3905006 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. [nat64] enable discovering NAT64 AIL prefix for OpenWRT (#9441)

    According to the description of
    openwrt/openwrt#11559, libanl is already
    included in the musl c library, so we can turn this option on.
    
    We enable OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE on OpenWrt
    platform for better experience.
    ihidchaos authored Sep 21, 2023
    Configuration menu
    Copy the full SHA
    93e72bc View commit details
    Browse the repository at this point in the history
  2. [tmf] set default snoop cache entry count to 1/16 of total (#9440)

    This commit sets the default value of the configuration
    `TMF_ADDRESS_CACHE_MAX_SNOOP_ENTRIES` to `1/16` of the total number
    of address cache entries. This ensures that the snoop entries scale
    with the total number of entries.
    abtink authored Sep 21, 2023
    Configuration menu
    Copy the full SHA
    85aff45 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. [spinel] reset mState to kStateDisabled if recovering from kStateDisa…

    …led (#9450)
    
    This commit changes openthread rcp recovery code to keep `mState` as
    `kStateDisabled` if the state before recovery was
    `kStateDisabled`. This is needed to avoid otbr-agent crash in the
    scenario where rcp recovery is triggered before otbr initialization.
    gabekassel authored Sep 22, 2023
    Configuration menu
    Copy the full SHA
    f0530af View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Revert "[nat64] enable discovering NAT64 AIL prefix for OpenWRT (#944…

    …1)" (#9458)
    
    This reverts commit 93e72bc.
    ihidchaos authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    f31a583 View commit details
    Browse the repository at this point in the history
  2. github-actions: bump github/codeql-action from 2.21.4 to 2.21.8 (#9459)

    Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.21.4 to 2.21.8.
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@a09933a...6a28655)
    
    ---
    updated-dependencies:
    - dependency-name: github/codeql-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    9b7c78f View commit details
    Browse the repository at this point in the history
  3. [address-resolver] set minimum kMaxNonEvictableSnoopedEntries to `1…

    …` (#9460)
    
    Resolves issues when `OPENTHREAD_CONFIG_TMF_ADDRESS_CACHE_ENTRIES` is
    too small.
    jwhui authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    6943dd2 View commit details
    Browse the repository at this point in the history
  4. [docs] add Doxygen tags for CLI commands (macfilter rss add - `macf…

    …ilter rss remove`) (#9442)
    jrhodie authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    9099a13 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Configuration menu
    Copy the full SHA
    0c5966d View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. [script] exclude ot_testing and __pycache__ when building the OTB…

    …R docker (#9457)
    
    This commit excludes `ot_testing` and `__pycache__` directories when
    copying the files before building the docker.
    
    Such files are usually generated by root user and will cause errors
    when copying them as a non-root user.
    superwhd authored Sep 27, 2023
    Configuration menu
    Copy the full SHA
    17286db View commit details
    Browse the repository at this point in the history
  2. [ip6] update where HandlePayload() check message is not null (#9462)

    This commit updates `Ip6::HandlePayload()` to check the `message`
    pointer for null in the common flow, instead of in the `if()` block
    where the message is cloned when `aMessageOwnership` is set to
    `kCopyToUse`. If `aMessageOwnership` is `kTakeCustody` the `message`
    is initialized as `&aMessage` already which cannot be `nullptr`.
    
    This protects against code checker warnings that `message` may remain
    null if the given `aMessageOwnership` enum value is not one of its
    two defined enumerator values.
    abtink authored Sep 27, 2023
    Configuration menu
    Copy the full SHA
    09a0fbe View commit details
    Browse the repository at this point in the history
  3. [posix] address coverity warning: argument cannot be negative (#9453)

    Added validation to check for the negative value of sMLDMonitorFd, as
    setsockopt parameter cannot be negative.
    hastigondaliya authored Sep 27, 2023
    Configuration menu
    Copy the full SHA
    50487a6 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. [joiner] check for non-zero joiner UDP port before electing a joiner …

    …router (#9445)
    
    An invalid Discovery Response that carries no Joiner UDP Port TLV will
    be accepted by the joiner, but we shouldn't qualify it as a valid
    joiner router since we can only open a connection with a non-zero
    port.
    suveshpratapa authored Sep 28, 2023
    Configuration menu
    Copy the full SHA
    f19548b View commit details
    Browse the repository at this point in the history
  2. [mle] simplify ProcessRouteTlv() call in HandleAdvertisement() (#…

    …9465)
    
    This commit simplifies the checks to decide whether or not to call
    `ProcessRouteTlv()` in `MleRouter::HandleAdvertisement()`. The whole
    check is guarded by `aRxInfo.IsNeighborStateValid()`, which ensures
    that we only process Route TLVs for Advertisements received from
    valid neighbors. In particular, we can remove the additional checks
    in the case where the device is itself `IsChild()` (i.e., acting as
    an FED). In this case, `aRxInfo.mNeighbor` will be determined using
    `NeighborTable::FindNeighbor()`, which checks and accepts the parent
    as the only valid neighbor of the FED child.
    abtink authored Sep 28, 2023
    Configuration menu
    Copy the full SHA
    9f76d45 View commit details
    Browse the repository at this point in the history
  3. [nd6] add RaFlagsExtOption and track flags in received RAs (#9448)

    This commit adds the `RaFlagsExtOption` class to represent an "RA
    Flags Extension" Option. It also adds code to `RoutingManager` class
    to process this option in received RA messages and check whether or
    not the Stub Router Flag is set. Additionally, it checks and tracks
    whether or not the `M` (Managed Address) and `O` (Other Config) flags
    are set in the received RA message's header.
    abtink authored Sep 28, 2023
    Configuration menu
    Copy the full SHA
    50c70d8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bd63637 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. [routing-manager] new config to use heap for PrefixTable entries (#…

    …9455)
    
    This commit introduces a new configuration option for the routing
    manager to use heap-allocated entries in the `DiscoveredPrefixTable`,
    which maintains a list of discovered routers and their advertised
    on-link prefixes. This makes the implementation more flexible when
    dealing with a large number of routers and/or discovered prefix
    entries.
    
    The config option `OPENTHREAD_CONFIG_BORDER_ROUTING_USE_HEAP_ENABLE`
    enables this behavior. By default, it is enabled. When disabled, the
    previous model, which uses pre-allocated arrays and pools, is used
    instead.
    
    This commit also updates the unit test `test_routing_manager` to track
    heap allocations and validate that all heap allocations by the
    routing manager are freed when it is stopped.
    abtink authored Sep 29, 2023
    Configuration menu
    Copy the full SHA
    eaa6261 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. github-actions: bump actions/checkout from 4.0.0 to 4.1.0 (#9476)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@3df4ab1...8ade135)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    c6eaeda View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. [github-actions] fix the codespell version in spell-check job (#9…

    …482)
    
    This commit fixes the version of `codespell` installed in the
    `spell-check` job of `build` workflow to version `2.2.4`.
    abtink authored Oct 3, 2023
    Configuration menu
    Copy the full SHA
    becba6b View commit details
    Browse the repository at this point in the history
  2. [bbr-local] simplify AddService() and its use (#9477)

    This commit contains smaller changes in `BackbonRouter::Local`:
    
    - `AddService()` now gets a `RegisterationMode` enum as its input
      either decide based on current state or force registration.
    - We remove the `NetworkData::Notifier::HandleServerDataUpdated()`
      calls after calling `AddService()` since `AddService()` method
      itself will already call this (when successfully adds the service
      to Network Data)
    - We also remove the extra state check before calling `AddService()`
      as it is done by the `AddService()` method itself.
    abtink authored Oct 3, 2023
    Configuration menu
    Copy the full SHA
    3043f2e View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. [backbone-router] use TimeTicker directly to delay registration (#9…

    …483)
    
    This commit update `BackboneRouter::Local` to be a `TimeTicker`
    receiver directly instead of using the `MleRouter for this. The
    `TimeTicker` callback is used to delay registration by counting down
    `mRegistrationTimeout`.
    abtink authored Oct 4, 2023
    Configuration menu
    Copy the full SHA
    4ab8334 View commit details
    Browse the repository at this point in the history
  2. [mle] simplify reattach on losing connectivity to leader (#9479)

    This commit updates the attach process to the same partition after
    a router/REED losing connectivity to the leader. It removes the
    `kSamePartitionRetry` enumerator from `AttachMode`. With this change,
    after trying to attach using `kSamePartition` attach mode (with a
    total of six Parent Request attempts to Routers and REEDs), the
    device will switch to `kAnyPartition` attach mode. This helps to
    reduce the total number of attempts before the device can decide to
    take the leader role.
    abtink authored Oct 4, 2023
    Configuration menu
    Copy the full SHA
    21d62ec View commit details
    Browse the repository at this point in the history
  3. [mle] send data polls after Child ID Request ack (#9264)

    Currently, when SED sends out the Child ID request, the first data
    poll goes out immediately (from the SendChildIDRequest method in
    MeshForwarder (snippet A). This does not check for any failures in RCP
    or SubMac (Channel Access failures or Abort which can cause Child ID
    request to fail transmission). In such failure scenarios, additional
    data polls are sent out (to retrieve Child ID response which seems
    like wasted OTA transmissions).  Request to delay the start of data
    polling procedure after the Child ID request is sent successfully.
    sarveshkumarv3 authored Oct 4, 2023
    Configuration menu
    Copy the full SHA
    9d80fbc View commit details
    Browse the repository at this point in the history
  4. [docs] fix typos in Doxygen documentation (#9485)

    This commit fixes typos in Doxygen documentation, ensuring that
    `@param` variable names match the function/method declaration. It
    also adds any missing `@param` tags and removes extra ones.
    abtink authored Oct 4, 2023
    Configuration menu
    Copy the full SHA
    4e52d85 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. [mle] handle received Advertisements from RxOnlyNeighbor on FED (#9…

    …484)
    
    This commit updates `Mle` class such that on an FED (FTD child) when
    an MLE message is received, we use `FindRxOnlyNeighborRouter()` in
    addition to `FindNeighbor()` before performing security check. This
    ensures that the key sequence and frame counters are validated for
    messages from a rx-only neighbor router.
    
    After security check and before calling `Handle{MleCommand}()` we
    clear the `neighbor` if it is a rx-only except for a subset of MLE
    messages such as MLE Advertisement. This ensures that, as an FED, we
    are selective about which messages to process from rx-only
    neighbors.
    
    This commit also adds a new flavor of `FindRxOnlyNeighborRouter()`
    that accepts an `Mac::ExtAddress` as its input parameter.
    abtink authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    a363396 View commit details
    Browse the repository at this point in the history
  2. [ip6] drop UDP datagrams from an untrusted origin to TMF port (#9437)

    This commit drops UDP datagrams from an untrusted origin to TMF port.
    
    Examples of untrusted origin:
    - A process other than OT on the host sends the packet to Thread
      network via platform API.
    - A packet forwarded from infrastructure network to Thread network by
      Thread Border Router.
    
    OT shouldn't allow UDP datagrams from untrusted origins going to TMF
    port of any Thread device.
    
    To implement this, there's an API `otIp6SendFromOrigin`
    introduced. This can be used for specifying the origin of a packet you
    want to send. This commit also encapsulates the 'origin' information
    in `Message::Metadata`.
    superwhd authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    e64f38a View commit details
    Browse the repository at this point in the history
  3. [routing-manager] include Stub Router flag in emitted RAs by BR (#9486)

    This commit updates `RoutingManager` to include the Flags Extension
    Option with Stub Router flag in its emitted Router Advertisement
    messages.
    
    Config `STUB_ROUTER_FLAG_IN_EMITTED_RA_ENABLE` can be used to enable
    or disable this behavior which is enabled by default.
    abtink authored Oct 5, 2023
    Configuration menu
    Copy the full SHA
    4f6b492 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. [mle-router] add RouterRoleTransition nested class (#9490)

    This commit adds `RouterRoleTransition` nested class to `MleRouter`.
    This class tracks the timeout and jitter intervals for router role
    transitions, i.e., device upgrading to router role from REED or
    downgrading from router to REED. It provides helper methods like
    `IsPending()` and `StartTimeout()` to check if role transition
    is pending or to start the timeout countdown. These methods help to
    simplify the code and make it more readable.
    abtink authored Oct 6, 2023
    Configuration menu
    Copy the full SHA
    50e20c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. [crypto-platform] fix build issue with mbedtls v3.5.0 (#9492)

    As per the mbedTLS v3.5.0 release notes:
    
    Ref: https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-3.5.0
    
    MBEDTLS_CIPHER_BLKSIZE_MAX is deprecated in favor of
    MBEDTLS_MAX_BLOCK_LENGTH (if you intended what the name suggests:
    maximum size of any supported block cipher) or the new name
    MBEDTLS_CMAC_MAX_BLOCK_SIZE (if you intended the actual semantics:
    maximum size of a block cipher supported by the CMAC module).
    
    This commit fixes the build issue keeping the backward compatibility
    intact.
    mahavirj authored Oct 9, 2023
    Configuration menu
    Copy the full SHA
    017c7ab View commit details
    Browse the repository at this point in the history
  2. [mesh-forwarder] remove message if no pending tx in SendMessage() (…

    …#9495)
    
    This commit updates `MeshForwarder::SendMessage()` on FTD to check if
    the message is marked for direct transmission and/or indirect
    transmission to a sleepy child. If there is no pending transmission,
    the message is removed.
    
    This situation can occur if the message destination is a multicast
    address larger than realm-local scope. In such a case, `SendMessage()`
    skips `SetDirectTransmission()` on the message(since such message
    will be forwarded using IP-in-IP encapsulation by `Ip6` module) and
    assumes the message is for a sleepy child. However, if none of the
    children are subscribed to this address, the message will not be
    marked for indirect transmission either. Without the fix in this
    commit, such messages would have remained in the `mSendQueue` and not
    been removed or freed, as messages are only checked for removal after
    a direct or indirect transmission attempt.
    abtink authored Oct 9, 2023
    Configuration menu
    Copy the full SHA
    1b271a4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af5938e View commit details
    Browse the repository at this point in the history
  4. github-actions: bump step-security/harden-runner from 2.5.1 to 2.6.0 …

    …(#9499)
    
    Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.5.1 to 2.6.0.
    - [Release notes](https://github.com/step-security/harden-runner/releases)
    - [Commits](step-security/harden-runner@8ca2b8b...1b05615)
    
    ---
    updated-dependencies:
    - dependency-name: step-security/harden-runner
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 9, 2023
    Configuration menu
    Copy the full SHA
    652e3f2 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. [message] add IsOrigin{}() helper methods (#9506)

    This commit adds helper methods to the `Message` class to check if the
    message origin matches a specific origin. These methods are used in
    the code as syntactic sugar to simplify the code.
    abtink authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    786bd7f View commit details
    Browse the repository at this point in the history
  2. [cli] update ip6addr -v to include more info about address (#9488)

    This commit updates the `ip6addr -v` CLI command to provide more
    information about each address including origin, prefix length, and
    preferred and valid flags.
    abtink authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    8cefa49 View commit details
    Browse the repository at this point in the history
  3. [mesh-forwarder] simplify multicast forward to sleepy children (#9505)

    This commit simplifies the `MeshForwarder::SendMessage()` method and
    its logic for determining whether to send a multicast message to
    sleepy children. We first determine whether the destination address
    is link-local or realm-local all-nodes, meaning it is destined to all
    nodes. Otherwise, we need to check whether each sleepy child is
    subscribed to the address. We then iterate through the child table
    and mark the message for indirect transmission accordingly.
    abtink authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    2fe0770 View commit details
    Browse the repository at this point in the history
  4. [spinel] create spinel interface based on the radio url protocol (#9393)

    The posix platform is able to support the HDLC, SPI and vendor spinel
    interfaces, but the spinel interface type can't be changed
    dynamically. It is inconvenient to use different spinel interfaces for
    Thread stack in Android. This commit enables the posix platform to
    support the HDLC, SPI and vendor interface at the same time, and the
    final spinel interface type is determined by the radio url protocol.
    
    Some other changes:
    1. Not use CRTP style for the radio spinel.
    2. Deprecate the OT_POSIX_CONFIG_RCP_BUS and
       OPENTHREAD_POSIX_CONFIG_RCP_TIME_SYNC_INTERVAL.
    zhanglongxia authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    7568e31 View commit details
    Browse the repository at this point in the history
  5. [ip6-mpl] simplify Mpl::HandleRetransmissionTimer() (#9509)

    This commit contains smaller changes in `HandleRetransmissionTimer()`:
    
    - Remove nested if/else blocks and use `continue`.
    - We clone the MPL message if more retx are needed, otherwise use the
      `message` directly.
    - In both cases, we now use the same code path for preparing and
      sending the `message`, avoiding repeated code.
    - Rename `GetTimerExpirations() to `DetermineMaxRetransmissions()`.
    abtink authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    ca97cf7 View commit details
    Browse the repository at this point in the history
  6. [ip6-mpl] remove aIsOutbound input and use aMessage.GetOrigin() (…

    …#9510)
    
    With the recent addition of `GetOrigin()`, the origin of a message is
    tracked by `Message` itself. With this change, we no longer need to
    pass `aIsOutbound` to `Ip6::Mpl` methods, as it can be determined
    from the origin of `aMessage`. This commit simplifies the code by
    removing the `aIsOutbound` input parameter.
    abtink authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    0d0655d View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. [ip6] fix constant name style and simplify filtering of ICMP types (#…

    …9512)
    
    This commit contains smaller changes in `Ip6` class:
    - Rename constant `kForwardIcmpTypes` to follow naming convention
    - Simplify how it it used to filter which ICMP types are forwarded
      to Thread mesh.
    abtink authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    57ef721 View commit details
    Browse the repository at this point in the history
  2. [ping-sender] allow setting multicast loop (#9494)

    This commit updates `PingSender` and its config to include a
    `mMulticastLoop` flag and allow the caller to set this flag. When
    set, multicast ping echo request messages are looped back and
    received by the device itself if it is subscribed to the same
    address. The `ping` CLI command is also updated to allow setting this
    flag.
    
    This commit also updates `test-008-multicast-traffic.py` to add new
    test cases to cover the multicast loop flag behavior (pinging with or
    without this flag). In particular, it covers when the ping
    destination is a realm-local multicast address and when it is a
    larger-than-realm-local multicast address (where the `ot::Ip6` module
    would use a tunnel header for forwarding the message).
    abtink authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    8f6d670 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be317ec View commit details
    Browse the repository at this point in the history
  4. [ip6] update tunnel message receive in HandleDatagram() (#9503)

    This commit updates how `Ip6::HandleDatagram()` processes a tunneled
    IP-in-IP message. Previously, if a message was marked for both
    `receive` and `forwardThread`, e.g., possible for a multicast message
    from host with multicast-loop flag, it would be received but not
    forwarded to the Thread mesh. This commit ensures that such messages
    are handled properly.
    
    Without this change, multicast transmission still works fine due to
    the MPL layer retransmitting the message, which would then be
    forwarded to the Thread mesh. However, this change improves the
    multicast behavior by ensuring that the original/first message is
    also forwarded to the Thread mesh.
    
    This commit changes the code so that if we need to both `receive` and
    `forwardThread`, we create a copy of the message by cloning it.
    Otherwise, we take ownership of the original message and use it
    directly. We then remove the encapsulating header before processing
    the embedded message by calling the `HandleDatagram()` recursively.
    abtink authored Oct 11, 2023
    Configuration menu
    Copy the full SHA
    543b5da View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. [ip6] add PrepareMulticastToLargerThanRealmLocal() (#9513)

    This commit adds `Ip6::PrepareMulticastToLargerThanRealmLocal()`,
    which prepares to transmit a multicast message with destination
    larger than realm-local address. It checks if any sleepy child of
    device is subscribed to the multicast address and clones the message
    for indirect tx if needed, before adding the IP-in-IP tunnel header.
    The new method helps remove repeated code in `SendRaw()` and
    `SenDatagram()`.
    abtink authored Oct 12, 2023
    Configuration menu
    Copy the full SHA
    fc30740 View commit details
    Browse the repository at this point in the history
  2. [ip6] update otNetifAddress.mNext to be pointer to const (#9519)

    This commit contains the following smaller changes in `Ip6` and its
    public APIs:
    
    - Updates the `otNetifAddress.mNext` field to be a pointer to `const`.
      This prevents users of OT APIs from modifying addresses as they
      iterate over the list of addresses. The `otNetifMulticastAddress`
      structure already uses this model.
    
    - Adds new API `otIp6HasUnicastAddress()` to check whether or not a
      unicast IPv6 address is assigned to the Thread interface. This is
      used to simplify CLI and `posix/platform/netif.cpp`.
    
    - Fixes the returned error from `otIp6AddUnicastAddress()` to be
      `OT_ERROR_INVALID_ARGS` when the address is a Thread internal
      address, to match the documentation.
    
    - Fixes documentation and style in `ip6.h`.
    abtink authored Oct 12, 2023
    Configuration menu
    Copy the full SHA
    094bae0 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. [mac] skip logging trel frame tx error when trel interface is disable…

    …d (#9522)
    
    This commit updates `Mac::LogFrameTxFailure` to skip logging when
    `Trel::Interface` is disabled.
    abtink authored Oct 13, 2023
    Configuration menu
    Copy the full SHA
    17e433c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9876468 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2023

  1. [netif] simplify applying mesh-local prefix change to addresses (#9527)

    This commit simplifies how the `Netif` unicast and multicast addresses
    that use the mesh-local prefix are updated when the mesh-local prefix
    is changed.
    
    The `Netif::UnicastAddress` class now includes a `mMeshLocal` flag,
    which is set for all mesh-local addresses (RLOCs, ALOCs, and ML-EID).
    When the mesh-local prefix is changed, `Mle` will inform `ThreadNetif`
    to apply the new prefix. `ThreadNetif` will then update all of the
    assigned unicast addresses that are marked as mesh-local, as well as
    all of the subscribed mesh-local prefix-based multicast addresses
    (such as link-local or realm-local All Thread Nodes addresses). The
    `Netif` class first signals the removal of the previous address based
    on the old prefix, and then the addition of the new address with the
    new mesh-local prefix.
    
    This change simplifies the code, in particular the modules such as
    `Commissioner`, `BorderAgent` and `BackboneRouter::Local`, which need
    to manage specific ALOC addresses. These modules no longer need to be
    informed when the mesh-local prefix is changed to update their
    address, as it will be done by the `Netif` class directly.
    abtink authored Oct 14, 2023
    Configuration menu
    Copy the full SHA
    3e18032 View commit details
    Browse the repository at this point in the history
  2. [meshcop-leader] check IsLeader() processing `LeaderPetition/KeepAl…

    …ive (#9531)
    
    This commit adds an `IsLeader()` check to ensure that the device is
    acting as the leader before processing `kUriLeaderPetition` or
    `kUriLeaderKeepAlive` TMF messages. This adds a safeguard to ensure
    that only the leader can update the commissioner dataset.
    abtink authored Oct 14, 2023
    Configuration menu
    Copy the full SHA
    d569760 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. [github-actions] add job summary to size.yml workflow (#9532)

    This commit uses `GITHUB_STEP_SUMMARY` to add a summary (in markdown
    format) to the GitHub action workflow `size.yml` runs.
    abtink authored Oct 16, 2023
    Configuration menu
    Copy the full SHA
    18e214b View commit details
    Browse the repository at this point in the history
  2. [ip6] use OwnedPtr<Message> to simplify message lifetime (#9533)

    This commit updates the `Ip6` class to use `OwnedPtr<Message>`. This
    smart pointer automates the freeing of messages and helps to simplify
    the code by removing all the logic that tracks whether a message
    needs to be freed. It also makes the transfer of ownership of
    `Message` instances between methods more clear.
    abtink authored Oct 16, 2023
    Configuration menu
    Copy the full SHA
    6bc0298 View commit details
    Browse the repository at this point in the history
  3. [dataset] highlight SetTlv<ValueType>() specializations in the docs…

    … (#9534)
    
    This commit updates the `Dataset::SetTlv<ValueType>()` documentation
    to mention its specifications for `uint` types (which use big-endian
    encoding). It also adds `static_assert` checks to ensure that the
    general template implementation is not used with `uint16/32/64`
    types.
    abtink authored Oct 16, 2023
    Configuration menu
    Copy the full SHA
    ee82a57 View commit details
    Browse the repository at this point in the history
  4. [cli] update Dataset documentation with Pending Dataset usage and tim…

    …e units (#9475)
    
    Also fixes a pskc -> PSKc typo; and explain better how to init
    dataset. Based on existing documentation I struggled a long time to
    create a Pending Dataset in the proper way, so I thought it would be
    good to document this better.
    EskoDijk authored Oct 16, 2023
    Configuration menu
    Copy the full SHA
    66eaeec View commit details
    Browse the repository at this point in the history
  5. [tlv] add helper method to find/read TLVs in a sequence of TLVs (#9538)

    This commit moves the helper methods to find a specific TLV in a
    sequence of TLVs from the `MeshCoP::Tlv` class to the base `Tlv`
    class. This makes these helper methods accessible to all subclasses.
    abtink authored Oct 16, 2023
    Configuration menu
    Copy the full SHA
    4808b76 View commit details
    Browse the repository at this point in the history
  6. github-actions: bump github/codeql-action from 2.21.8 to 2.22.3 (#9537)

    Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.21.8 to 2.22.3.
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@6a28655...0116bc2)
    
    ---
    updated-dependencies:
    - dependency-name: github/codeql-action
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 16, 2023
    Configuration menu
    Copy the full SHA
    1d81283 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. [logging] add new otLogPlat() APIs with sub-module name (#9516)

    This commit adds new public OT logging APIs `otLogPlat()` and
    `otLogPlatArgs()`, which allow the caller to specify a platform
    sub-module name to be included in the emitted log. This makes it
    easier to distinguish logs from the platform layer and filter the
    logs.
    
    This commit also updates the `RadioSpinel` class to use the new API,
    ensuring that its logs use the "P-RadioSpinel" module name.
    abtink authored Oct 17, 2023
    Configuration menu
    Copy the full SHA
    cd5768b View commit details
    Browse the repository at this point in the history
  2. [spinel] use local variables to export mac key before sending over SP…

    …INEL (#9536)
    
    In RadioSpinel::SetMacKey we try to reuse the otMacKey passed to
    export the literal key from PSA to be sent over SPINEL to RCP. But as
    the passed param is const, we cant really use this. Better option is
    to extract it into a local buffer and use that to pass the keys to
    RCP.
    hemanth-silabs authored Oct 17, 2023
    Configuration menu
    Copy the full SHA
    6bfe59d View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. [meshcop-leader] simplify adding CommissioningData (#9540)

    This commit contains smaller changes in` MeshCoP::Leader` class:
    - Changes `CommissioningData` to be a `private` type in this class
    - Adds `Init()` to `CommisioningData()` to init all sub-tlvs.
    abtink authored Oct 18, 2023
    Configuration menu
    Copy the full SHA
    47272e4 View commit details
    Browse the repository at this point in the history
  2. [radio-spinel] simplify SetMacKey() (#9539)

    This commit simplifies the `RadioSpinel::SetMacKey()` method.
    A common `private` overload of `SetMacKey()` is added that uses
    `const otMacKey &` as its input key type.
    
    When `KEY_REFERENCES_ENABLE` is not enable the `SetMacKey()` simply
    passes the key from the `otMacKeyMaterial` directly. This avoids the
    unnecessary copying of the key into a local variable.
    
    When `KEY_REFERENCES_ENABLE` is enabled, the keys are read from
    secure storage. A new `ReadMacKey()` helper method is added which
    also validates that the read key size is correct.
    abtink authored Oct 18, 2023
    Configuration menu
    Copy the full SHA
    03bfced View commit details
    Browse the repository at this point in the history
  3. [netdata] simplify parsing of Commissioning Dataset sub-TLVs (#9541)

    This commit contains changes related to parsing of Commissioning
    Dataset sub-TLVs in `NetworkData::Leader`:
    - Adds `FindInCommisioningData<SubTlvType>` to search for a given
      `SubTlvType` in Commissioning Data.
    - Adds `FindCommissioningSessionId()`, `FindBorderAgentRloc()`,
      and `FindJoinerUdpPort()` to parse and get get the info
      from Commissioning Dataset.
    abtink authored Oct 18, 2023
    Configuration menu
    Copy the full SHA
    2457ba7 View commit details
    Browse the repository at this point in the history
  4. [meshcop] simplify processing of Commissioner ID TLV (#9543)

    This commit updates CommissionerIdTlv to be defined as `StringTlvInfo`
    (a TLV with a UTF-8 string value with a specified maximum length). This
    allows us to use `Tlv` helper methods to `Find` and `Append` this
    TLV, simplifying the code.
    
    This commit also adds a helper `StringCopy()` method that copies a
    C string into a given target string buffer array if it fits in the array.
    This method can also optionally perform an encoding check on the string,
    such as a UTF-8 encoding check. This helper method is used to simplify
    setting different strings, such as Commissioner ID, Provisioning URL,
    Vendor Name, etc.
    abtink authored Oct 18, 2023
    Configuration menu
    Copy the full SHA
    a69c2db View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. [netdata-leader] simplify HandleTmf<kUriCommissionerGet> (#9546)

    This commit simplifies the handling of `kUriCommissionerGet` TMF
    message and preparation of its response.
    abtink authored Oct 19, 2023
    Configuration menu
    Copy the full SHA
    95b0869 View commit details
    Browse the repository at this point in the history
  2. [udp] remove aIpProto from Ip6::Udp::SendDatagram() (#9547)

    This commit removes the input `aIpProto` in `Upd::HandleDatagram()`
    method and assumes `kProtoUdp`.
    abtink authored Oct 19, 2023
    Configuration menu
    Copy the full SHA
    1b59c97 View commit details
    Browse the repository at this point in the history
  3. [tests] fix verification in test_routing_manager.cpp (#9548)

    Some equation checks accidentally became non-zero checks due to
    typo. Such tests may fail in certain build configurations when the
    heap allocation is zero after initialization of the test.
    superwhd authored Oct 19, 2023
    Configuration menu
    Copy the full SHA
    6ff2778 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. [netdata] resign active commissioner on NetData restore on leader (#9…

    …549)
    
    This commit updates `HandleNetworkDataRestoredAfterReset()`, which is
    called after Network Data is restored on the leader after a leader
    reset and recovery.
    
    We now resign any active Commissioner by clearing the Commissioning
    Data and adopt the Session ID from the restored Network Data
    Commissioning Data. This ensures that any stale Commissioning Data
    is not retained in Network Data for longer after a leader reset.
    abtink authored Oct 20, 2023
    Configuration menu
    Copy the full SHA
    c8aeeef View commit details
    Browse the repository at this point in the history
  2. [netdata] simplify and update HandleTmf<kUriCommissionerSet>() (#9550)

    This commit updates `HandleTmf<kUriCommissionerSet>()`, which is used
    to set the Commissioning Dataset. The following changes have been made:
    - `Tlv::Find<TlvType>()` methods are used to find and parse TLVs in the
      received request message.
    - The existing code required the dataset to contain either Joiner UDP
      or Steering Data TLVs. This check has been removed, making the
      implementation aligned with the Thread specification. This permits a
      commissioner to disallow MeshCoP Joining by not including Steering
      Data.
    - A new flavor of `SetCommisioningData()` is added, which reads the
      TLVs directly from a given `aMessage`. This method is now used
      when processing `kUriCommissionerSet` to avoid using temporary
      local buffers to read and copy the TLVs.
    - `SetCommisioningData()` and its related methods have been moved to
      `network_data_leader_ftd` since they are limited to and used on
      FTD devices acting as leader.
    - A new private `UpdateCommissioningData()` method has been added.
      This method first checks whether or not we can add a Commissioning
      Data TLV with a given length into Network Data, before removing
      the current TLV. This is used as a common method when Commissioning
      Data is set from a message or from a given data buffer.
    abtink authored Oct 20, 2023
    Configuration menu
    Copy the full SHA
    837c7fd View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. github-actions: bump actions/checkout from 4.1.0 to 4.1.1 (#9557)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@8ade135...b4ffde6)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 23, 2023
    Configuration menu
    Copy the full SHA
    a7643db View commit details
    Browse the repository at this point in the history
  2. [nedata] add API to retrieve Commissioning Dataset (#9551)

    This commit adds `otNetDataGetCommissioningDataset()` as a public
    API to retrieve the Commissioning Dataset from the Network Data.
    
    It also updates CLI `netdata show` command to output the Commissioning
    Dataset information. The documentation in `README_NETDATA.md` and
    in `cli_network_data` are also updated. The test scripts that parse
    `netdata show` output are also updated.
    abtink authored Oct 23, 2023
    Configuration menu
    Copy the full SHA
    28f30b3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b73b124 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Configuration menu
    Copy the full SHA
    d26f4e5 View commit details
    Browse the repository at this point in the history
  2. [mac] update the cached supported channel mask when the region code c…

    …hanges (#9418)
    
    The current code of the `mac.cpp` caches the supported channel mask to
    a local variable. But the supported channel mask may be changed after
    the country code is changed. This will cause the supported channel
    mask used in `mac.cpp` to be inconsistent with the actual supported
    channel mask.
    
    This commit adds an API `otLinkSetRegion()` to set the region code and
    then update the cached supported channel mask to avoid the channel
    mask inconsistencies. The current Thread channel may be not included
    in the new supported channel mask. When the Thread stack detects this
    case, it detaches the current Thread network gracefully.
    zhanglongxia authored Oct 24, 2023
    Configuration menu
    Copy the full SHA
    4275c58 View commit details
    Browse the repository at this point in the history
  3. [posix] addressing coverity warning: resource leak (#9472)

    The "assert" and "VerifyOrDie" were checking same condition, so
    the second validation was never executed if (rval != sizeof(key)).
    Additionally,"aSwapFd" was not freed on assertion.
    
    With this commit,
    1. addressed the memory leak to system resources.
    2. Replaced VerifyOrDie() or assert() by VerifyOrExit()
    3. handle error at exit
    hastigondaliya authored Oct 24, 2023
    Configuration menu
    Copy the full SHA
    fbeb4d1 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Configuration menu
    Copy the full SHA
    52e0c8b View commit details
    Browse the repository at this point in the history
  2. [posix] add otSysSetInfraNetif API (#9528)

    This commit adds a new API `otSysSetInfraNetif` to support specifying
    the infrastructure network interface for the platform. This can be
    useful in following cases:
    - The infra link cannot be determined at the start up of
      `otbr-agent`. We can call this API to specify the infra link without
      specifying it in the command line arguments.
    - Let Thread Border Router switch to another infra link without
      restarting the whole OpenThread stack.
    superwhd authored Oct 25, 2023
    Configuration menu
    Copy the full SHA
    9106817 View commit details
    Browse the repository at this point in the history
  3. [log] add otLogGenerateNextHexDumpLine() to generate hex dump (#9555)

    This commit adds a public OT API to generate hex dump output line by
    line. This function is then used for both `LogDump{}()` and frame
    capture output by CLI `promiscuous` command (removing repeated
    similar code) and harmonize the hex dump outputs.
    abtink authored Oct 25, 2023
    Configuration menu
    Copy the full SHA
    91b7c3f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    4c75b6b View commit details
    Browse the repository at this point in the history
  2. [core] define core/instance folder for instance modules (#9561)

    This commit moves the `instance` module to a newly added folder
    `core/instance` (from `core/common`.  Header file `extension.hpp`
    and its example is also moved to the same folder.
    abtink authored Oct 26, 2023
    Configuration menu
    Copy the full SHA
    1528c88 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Configuration menu
    Copy the full SHA
    0b0db37 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. github-actions: bump github/codeql-action from 2.22.3 to 2.22.5 (#9571)

    Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.3 to 2.22.5.
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@0116bc2...74483a3)
    
    ---
    updated-dependencies:
    - dependency-name: github/codeql-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    7074a43 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Configuration menu
    Copy the full SHA
    c6ffe1a View commit details
    Browse the repository at this point in the history
  2. [netdata] simplify Leader class (#9563)

    This commit updates the `NetworkData::Leader` sub-class model,
    removing `LeaderBase` (which intended to provide common functions
    shared between FTD and MTD) and instead adding all methods directly
    in `Leader` class with all `FTD`-specific methods having conditional
    `#if` check.
    abtink authored Oct 31, 2023
    Configuration menu
    Copy the full SHA
    4a9fb06 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. [build] move radio_spinel.cpp to new lib openthread-radio-spinel

    …(#9530)
    
    The lib `openthread-spinel-ncp` is used by the NCP build, it doesn't
    need the file `radio_spinel.cpp`. This commit changes the CMake file
    to make only the lib `openthread-spinel-rcp` include the file
    `radio_spinel.cpp`.
    zhanglongxia authored Nov 2, 2023
    Configuration menu
    Copy the full SHA
    5058500 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. github-actions: bump ossf/scorecard-action from 2.2.0 to 2.3.1 (#9584)

    Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.2.0 to 2.3.1.
    - [Release notes](https://github.com/ossf/scorecard-action/releases)
    - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
    - [Commits](ossf/scorecard-action@08b4669...0864cf1)
    
    ---
    updated-dependencies:
    - dependency-name: ossf/scorecard-action
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    f889bf9 View commit details
    Browse the repository at this point in the history
  2. [dataset] returns OT_ERROR_REJECTED when MGMT_SET is rejected by lead…

    …er (#9582)
    
    The current code won't return a failure error code when a MGMT_SET
    request is rejected by the leader, so the client doesn't know whether
    the operation succeed or not.
    
    This commit fixes this issue by converting the REJECTED state to the
    OT_ERROR_REJECTED error code which is propagated back via the
    otDatasetMgmtSetCallback callback.
    wgtdkp authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    74061ee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d74e43 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. [csl] add OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_LOCAL_TIME_SYNC option…

    … (#9568) (#9568)
    
    Allow platforms to reduce the periodic access to `otPlatRadioGetNow`
    to calculate CSL synchronization elapsed time in the case when those
    radio API calls are costly.
    edmont authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    3b30c84 View commit details
    Browse the repository at this point in the history
  2. [slaac] simplify adding/removing addresses and other enhancements (#9…

    …579)
    
    This commit makes the following smaller enhancements in `Slaac`
    class:
    - Adds a new `ShouldUseForSlaac()` method to check if a network data
      prefix should be used for SLAAC, checking flags and applying the
      filter if set.
    - Introduces separate `RemoveAddresses()` and `AddAddresses()` methods
      to manage SLAAC addresses, replacing the previous `Update()` method.
    - Adds helper methods to `RemoveAllAddresses()`, `RemoveAddress()` to
      remove a specific address, and `AddAddressFor(prefix)` to  generate
      and add an address for a given prefix.
    - Simplifies `GenerateIid()` by removing unused input parameters.
    abtink authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    a05954b View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. [posix] allow OT process to run when infra netif gets lost (#9583)

    In `ot::Posix::InfraNetif::GetFlags()`, the OT process would die if
    the infra network interface is removed on the POSIX platform. On
    Android platform, this is not the desired behavior because the system
    server may tell the OT process to switch another infra network
    interface. It's fine for OT process to keep running when the previous
    infra network interface disappears because later system server will
    call `otSysSetInfraNetif()` to specify the new infra network
    interface.
    superwhd authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    6edb06e View commit details
    Browse the repository at this point in the history