Skip to content

TREL should be explicitly disabled when there is no TREL parameter in the startup parameters #3495

Description

@tian051011

Describe the bug A clear and concise description of what the bug is.
When there is no TREL parameter in the startup parameters of otbr-agent, TREL should be explicitly disabled, rather than being enabled as it is currently and publishing malformed mDNS information with a port of 0.

To Reproduce Information to reproduce the behavior, including:

  1. Git commit id
    337711e
  2. IEEE 802.15.4 hardware platform
    nRF52840 Dongle
  3. Build steps
    Offical Guide
  4. Network topology
    Not applicable.

Just start otbr-agent using the command line without the TREL parameter, like:
otbr-agent -I wpan0 -B wlan0 spinel+hdlc+uart:///dev/ttyS2?uart-baudrate=115200

Expected behavior A clear and concise description of what you expected to happen.
When there is no TREL parameter in the startup parameters of otbr-agent, TREL should be explicitly disabled and no mDNS information should be published.

Console/log output If applicable, add console/log output to help explain your problem.

Additional context Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions