From: Ahmed Abdelsalam Date: Thu, 22 Nov 2018 18:05:16 +0000 (+0100) Subject: Fix checksum calculation for IPv6 Segment Routing (SRv6) traffic X-Git-Tag: tcpdump-4.99-bp~865 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a87d6a044893dace0534e91d77ce236a101d5794?hp=a87d6a044893dace0534e91d77ce236a101d5794 Fix checksum calculation for IPv6 Segment Routing (SRv6) traffic The checksum calculation for IPv6 packets is based on a pseudo header that includes the packet's final Destination Address (DA). If the IPv6 packet contains a Routing header, the final DA is the last element of the Routing header [RFC8200]. Currently, tcpdump supports Routing header types 0 and 2. IPv6 Segment Routing Header (SRH) is a new Routing header type (4). SRH is defined in draft-ietf-6man-segment-routing-header [1]. This patch fix the checksum calculation for SRv6 packets. It allows tcpdump to get the final DA value from SRv6 packets. [1] https://tools.ietf.org/html/draft-ietf-6man-segment-routing-header-17 ---