Replies: 1 comment 5 replies
-
Thanks for raising this discussion. I agree that the current behavior is not ideal. I see a couple of enhancements we can make:
Thoughts? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently running into an issue where dns browse command from a Thread End device (nrf52840) will only print instance name as shown below
This is due to the desired service having a TXT record size of 414 bytes (DNS allows for up to 65535 bytes split into 0-255 strings), while in src/cli/cli.cpp we only allocate a 255 byte buffer for the entire record
In this case,
otDnsBrowseResponseGetServiceInfo
will return error since it calls aVerifyOrExit(GetLength() <= aTxtBufferSize, error = kErrorNoBufs);
(where
GetLength()
is the TXT record size, and aTxtBufferSize is the size of the 255 byte buffer we allocate) and OutputDnsServiceInfo will not be reached.Understanding that we are operating in a constrained environment and cannot provide a 65535 byte buffer to cover all possible DNS services, would it make sense to increase that size to 512 to cover more devices ? or at least still print the host name / address and only omit TXT records ?
Beta Was this translation helpful? Give feedback.
All reactions