aboutgitcodebugslistschat
path: root/tap.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-03-06 16:34:28 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-03-13 14:37:25 +0100
commit413c15988ea381fbafa4eedbf821fe51f6d1651a (patch)
treecbab7f94c3d389b2b240bab2ffad034d9f706905 /tap.h
parentae69838db0091441ce1dd52314ffb20b5472659f (diff)
downloadpasst-413c15988ea381fbafa4eedbf821fe51f6d1651a.tar
passt-413c15988ea381fbafa4eedbf821fe51f6d1651a.tar.gz
passt-413c15988ea381fbafa4eedbf821fe51f6d1651a.tar.bz2
passt-413c15988ea381fbafa4eedbf821fe51f6d1651a.tar.lz
passt-413c15988ea381fbafa4eedbf821fe51f6d1651a.tar.xz
passt-413c15988ea381fbafa4eedbf821fe51f6d1651a.tar.zst
passt-413c15988ea381fbafa4eedbf821fe51f6d1651a.zip
udp: Use existing helper for UDP checksum on inbound IPv6 packets
Currently we open code the calculation of the UDP checksum in udp_update_hdr6(). We calling a helper to handle the IPv6 pseudo-header, and preset the checksum field to 0 so an uninitialised value doesn't get folded in. We already have a helper to do this: csum_udp6() which we use in some slow paths. Use it here as well. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.h')
0 files changed, 0 insertions, 0 deletions