-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dns: provide generic dns_query() function #18378
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sock_dtls
is a bit fiddly when it comes to this (should be fixed long-term!), but does this work? If yes it makes the code a bit more easy to read. If does not work, IS_USED
is preferred in any case over defined
to check the usage of a module.
Including
But why? I see no advantage of using
Huh I think I did delete a comment of mine 😅 |
AFAIK, |
Yes but under which conditions would be have |
Maybe testing, where you want to have that module in, but you don't want the behavior it implies in other modules, so you set |
But to wrap up this discussion: using C-conditionals is not possible, because |
Yup that works |
Than I would be very happy about an ACK in #18380 ;-) |
It's a two line change, can't I just include it here? |
As long as authorship is preserved.. But even for 2 line change: I won't review my own code. |
Are you being serious? 😄 |
Yes and yes. If I f*** up my own code and the reviewer did not test properly, the responsibility does not only lie with me. If I f*** my own code and ACK my own code with only the testing I did, the responsibility is completely with me. So, knowing myself, I'd rather avoid the risk of that 😉. |
Now this PR only contains commits by yours truly, you are free to review it 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Contribution description
Since we can have multiple DNS backends now, provide a common
dns_query()
wrapper function that allows to write backend agnostic applications.Testing procedure
Issues/PRs references