udp translation adopted

This commit is contained in:
Nico Schottelius 2019-07-16 10:55:17 +02:00
parent beecac726d
commit beada8408a

View file

@ -70,8 +70,11 @@ action delta_prepare()
action delta_udp_from_v4_to_v6()
{
delta_prepare();
hdr.udp.checksum = hdr.udp.checksum + meta.headerdiff;
v4sum();
v6sum();
/* here is also a possible overflow in both directions */
hdr.udp.checksum = hdr.udp.checksum + meta.v6sum - meta.v4sum;
}
action delta_tcp_from_v4_to_v6()