commit | 34b5eeae9f503310498225aa99383d83670fb258 | [log] [tgz] |
---|---|---|
author | Yuyang Huang <[email protected]> | Tue May 02 17:14:22 2023 +0900 |
committer | Cherrypicker Worker <[email protected]> | Mon May 08 08:22:34 2023 +0000 |
tree | 63eed79b20aa98c8f14d56c899dcf59d0cf08626 | |
parent | 64732f379fdc99e7b02a5014db067b7acf93b3c6 [diff] |
Avoid going over max service name length when renaming NSD services As per RFC 1034/1035, the max size of the label is 63 bytes. It should also be guaranteed when the serviceName is renamed due to the conflict. Bug: 265865456 Test: atest FrameworksNetTests (cherry picked from https://android-review.googlesource.com/q/commit:de802c8dc4f59735730fc24b0ca05a73f92e4bb5) Merged-In: I077d8abdb91071db62b9618d9918e3a12682aaf4 Change-Id: I077d8abdb91071db62b9618d9918e3a12682aaf4