HomeFreeBSD

ip_divert: calculate delayed checksum for IPv6 adress family

Description

ip_divert: calculate delayed checksum for IPv6 adress family

Before passing an IPv6 packet to application apply delayed checksum
calculation. Mbuf flags will be lost when divert listener will return a
packet back, so we will not be able to do delayed checksum calculation
later. Also an application will get a packet with correct checksum.

Reviewed by: donner
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D32807

Details

Provenance
aeAuthored on Nov 2 2021, 4:59 PM
Reviewer
donner
Differential Revision
D32807: Calculate delayed csums for IPv6 adress family in divert_packet
Parents
rG11703705c2f7: pf tests: route_to:icmp_nat_head requires scapy
Branches
Unknown
Tags
Unknown