Skip to content

Commit

Permalink
Merge pull request #563 from AltraMayor/net-test
Browse files Browse the repository at this point in the history
lls: fix ICMPv6 checksum
  • Loading branch information
AltraMayor authored Jun 7, 2022
2 parents 5418813 + 9374834 commit 9268a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lls/nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ nd_pkt_valid(struct rte_ipv6_hdr *ipv6_hdr, struct icmpv6_hdr *icmpv6_hdr,
return ipv6_hdr->hop_limits == 255 &&
rte_be_to_cpu_16(ipv6_hdr->payload_len) == icmpv6_len &&
icmpv6_hdr->code == 0 &&
rte_ipv6_icmpv6_cksum(ipv6_hdr, icmpv6_hdr) == 0xFFFF;
rte_ipv6_icmpv6_cksum(ipv6_hdr, icmpv6_hdr) == 0;
}

int
Expand Down

0 comments on commit 9268a46

Please sign in to comment.