<div dir="ltr">Hello,<div><br></div><div>(This is the same as issue <a href="https://github.com/lathiat/avahi/issues/436">#436</a>.)</div><div><br></div><div>It seems that in `avahi_entry_group_add_service_strlst` the passed in TXT argument is reversed before passing to the server: <a href="https://github.com/lathiat/avahi/blob/master/avahi-client/entrygroup.c#L373">https://github.com/lathiat/avahi/blob/master/avahi-client/entrygroup.c#L373</a>. In this way when we call the `avahi_entry_group_add_service_strlst` API, we can construct the TXT string list by calling `avahi_string_list_add` in the normal order. <br><br>On the other hand, the TXT passed into `AvahiServiceResolverCallback` is in the reverse order, which is different from above. When a user receives the TXT in the callback, the user may have to reverse the TXT string list first to get the correct order. <br><br>Is this a bug or by design? <br><br>Also, it seems that `avahi-browse` also doesn't reverse the TXT string list in its callback so that it returns the TXT record in the reversed order. This can be confirmed by following commands:</div><div><br>```<br>$ sudo avahi-publish-service test1 _test._udp 1234 k1=v1 k2=v2<br>```<br><br></div><div>```<br>$ avahi-browse -rt  _test._udp<br>```<br></div><div><br></div><div>Regards,</div><div>Handa</div></div>