-
Notifications
You must be signed in to change notification settings - Fork 287
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
feat(net): implement the last 2 missing network struct functions #2773
base: master
Are you sure you want to change the base?
Conversation
b13285b
to
992769c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2773 +/- ##
==========================================
- Coverage 73.08% 72.99% -0.09%
==========================================
Files 149 149
Lines 30531 30575 +44
==========================================
+ Hits 22313 22319 +6
- Misses 8218 8256 +38 ☔ View full report in Codecov by Sentry. |
62852fe
to
b076947
Compare
@@ -1833,19 +1968,16 @@ static int addr_resolve(const Network *ns, const char *address, IP *to, IP *extr | |||
const Family tox_family = to->family; | |||
const int family = make_family(tox_family); | |||
|
|||
struct addrinfo hints = {0}; | |||
hints.ai_family = family; | |||
hints.ai_socktype = SOCK_DGRAM; // type of socket Tox uses. |
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.
we are looking specifically for udp here, is this even correct??
98d4d9b
to
23befb9
Compare
726b2da
to
7fb9d41
Compare
7fb9d41
to
12a2ee8
Compare
12a2ee8
to
6cf8b83
Compare
How about the no dns variant? keep or drop? |
6cf8b83
to
f4934d8
Compare
and make use of them
f4934d8
to
1204c08
Compare
getaddrinfo
andfreeaddrinfo
getaddrinfo()
addr_resolve()
net_getipport()
os_network_no_dns()
os_network()
toos_network_dns()
instead?This pr finally allows us to implement a regression test for #2361
Also allows fuzzing returned results from DNS.
This pr implements a different approach to disabling DNS, compared to #2694, here we can simply replace the functions pointers in the network object with dummies/stubs.
This change is