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

Darwin - Pass the port advertised by mdns in network bytes order #7487

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

vivien-apple
Copy link
Contributor

Problem

On Darwin, mdns advertisement is advertising port 22827 instead of 11097. This is due to the API expecting the port to be passed in network byte order.

Change overview

  • Pass the port using the correct format

Testing

  • It was tested under darwin by running chip-all-clusters-app and using chip-tool discover resolve 12344321 0 to get the result from mdns
  • I have not added tests yet, because this is what I would like to achieve with this PR and a few others. Adding tests that exercise mdns.

@vivien-apple vivien-apple self-assigned this Jun 9, 2021
@andy31415 andy31415 merged commit 8f119cf into project-chip:master Jun 9, 2021
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants