-
Notifications
You must be signed in to change notification settings - Fork 291
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
refactor: Use strong typedef for network family. #2641
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2641 +/- ##
==========================================
- Coverage 73.09% 73.09% -0.01%
==========================================
Files 149 149
Lines 30533 30559 +26
==========================================
+ Hits 22319 22337 +18
- Misses 8214 8222 +8 ☔ View full report in Codecov by Sentry. |
132b8bd
to
32b4edf
Compare
32b4edf
to
03b3474
Compare
12cfaec
to
f6be32a
Compare
f6be32a
to
fa2b3a3
Compare
fa2b3a3
to
708361f
Compare
return -1; | ||
} | ||
|
||
target->family = family_from_net_family(family); | ||
|
||
if (net_family_is_ipv4(target->family) || net_family_is_tox_tcp_ipv4(target->family)) { | ||
memcpy(target->ip.v4.uint8, data + 1, SIZE_IP4); |
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.
might be worth making the following memcpy() dependent on is_ipv6()
708361f
to
9284446
Compare
This change is