-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Ipv4 cleanup #9088
Ipv4 cleanup #9088
Conversation
No need to initialize it to 0 as it will be set through given parameter. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Reduces the logic as well as the ipv4 header checksum needs to be computed either way. Fixes zephyrproject-rtos#8720 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
net_ipv4_finalize is always successful. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Codecov Report
@@ Coverage Diff @@
## master #9088 +/- ##
==========================================
- Coverage 52.46% 52.42% -0.04%
==========================================
Files 199 199
Lines 25063 25034 -29
Branches 5234 5236 +2
==========================================
- Hits 13150 13125 -25
+ Misses 9794 9789 -5
- Partials 2119 2120 +1
Continue to review full report at Codecov.
|
Avoiding to re-create the IPv4 header into ICMPv4 code directly. Fixes zephyrproject-rtos#8720 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Through net_icmpv4_set_chksum() Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
net if core code will do it. Fixes zephyrproject-rtos#8720 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Static ones with that prefix, exported ones with net_icmpv4_ prefix. Fixes zephyrproject-rtos#8720 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
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.
LGTM
Fixing issue #8720