lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #9784] mdns_resp_add_service: fix the max services g


From: Douglas
Subject: [lwip-devel] [patch #9784] mdns_resp_add_service: fix the max services guard.
Date: Thu, 11 Apr 2019 18:48:43 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36

Follow-up Comment #2, patch #9784 (project lwip):

Yes it was wrong, thanks for checking. Attached another suggestion, a proposed
simplification.

Would there be any consensus to change the mdns_resp_add_service() to return
an err_t and to add a separate argument in which to return the slot index?
Rather than conflating the err_t and the slot index in the result as is
currently done. So this would then parallel the convention used in
mdns_search_service().

Would also like to change the type of the slot indexes in general to be u8_t
rather than s8_t.

There a pros and cons to conflating a result number to have an interpretation
as both an index and as some error value, but on the balance it usually seems
best to separate them so each can have a clear type.

(file #46754)
    _______________________________________________________

Additional Item Attachment:

File name: 0001-mdns_resp_add_service-simplify-the-max-services-guar.patch
Size:1 KB
   
<https://savannah.nongnu.org/file/0001-mdns_resp_add_service-simplify-the-max-services-guar.patch?file_id=46754>



    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9784>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]