Simon,

Noted! :) That’s why I said “I am not sure” ;)

Regards,
Ajay Bhargav


From: Simon Goldschmidt
Sent: Tuesday, February 4, 2020 5:10 PM
To: lwip-users@nongnu.org
Subject: Re: [lwip-users] DNS thread-safe functions

Ajay Bhargav wrote:
> [..]
> However, I am not sure if dns_setserver really needs to be protected so much
> as there is nothing much going on except copying of server in an array.

Please *don't* suggest things like this. You *need* protection:
a) there is no guarantee the code will stay like it is now
b) when switching to IPv6, the write is *not* atomic any more

Don't try to be smarter than the authors of the code or it might eat you in the
future ;-)

Regards,
Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to