Skip to content

net: ipv6: Verify ICMPv6 checksum before accepting packet #10999

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

Merged
merged 3 commits into from
Nov 2, 2018

Conversation

jukkar
Copy link
Member

@jukkar jukkar commented Nov 1, 2018

Make sure that ICMPv6 checksum is correct before continuing
processing the packet.

Fixes #10971

Signed-off-by: Jukka Rissanen [email protected]

@codecov-io
Copy link

codecov-io commented Nov 1, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@0a3b5f2). Click here to learn what that means.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #10999   +/-   ##
=========================================
  Coverage          ?   53.25%           
=========================================
  Files             ?      217           
  Lines             ?    26698           
  Branches          ?     5925           
=========================================
  Hits              ?    14219           
  Misses            ?    10060           
  Partials          ?     2419
Impacted Files Coverage Δ
subsys/net/ip/ipv6.c 58.72% <60%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a3b5f2...85190f7. Read the comment docs.

@jukkar jukkar requested a review from tarunkum as a code owner November 2, 2018 08:37
Make sure that ICMPv6 checksum is correct before continuing
processing the packet.

Fixes zephyrproject-rtos#10971

Signed-off-by: Jukka Rissanen <[email protected]>
The ICMP checksum was not placed to correct position in the
created test packet. This caused the checksum to be bad, and
because we now check the ICMP checksum, the packet was rejected
and the mld test failed.

Signed-off-by: Jukka Rissanen <[email protected]>
The IPv6 test was failing because the ICMPv6 checksum was
wrong.

Signed-off-by: Jukka Rissanen <[email protected]>
@jukkar jukkar force-pushed the bug-10971-icmp-chksum branch from 58d9097 to 85190f7 Compare November 2, 2018 13:16
@jukkar jukkar merged commit f87c4c0 into zephyrproject-rtos:master Nov 2, 2018
@jukkar jukkar deleted the bug-10971-icmp-chksum branch November 2, 2018 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants