This commit is contained in:
Nico Schottelius 2019-07-15 14:24:04 +02:00
parent 51bf8b9ace
commit fc60e4f45f

View file

@ -68,13 +68,13 @@ action delta_prepare()
action delta_udp_from_v4_to_v6()
{
delta_prepare();
hdr.udp.checksum = hdr.udp.checksum + ~meta.headerdiff;
hdr.udp.checksum = hdr.udp.checksum + ~meta.headerdiff -1;
}
action delta_tcp_from_v4_to_v6()
{
delta_prepare();
hdr.tcp.checksum = hdr.tcp.checksum + ~meta.headerdiff;
hdr.tcp.checksum = hdr.tcp.checksum + ~meta.headerdiff -1;
}
action delta_ipv4_from_v6_to_v4()