This commit is contained in:
Nico Schottelius 2019-07-15 14:25:50 +02:00
parent fc60e4f45f
commit 2caace5735

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 -1;
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 -1;
hdr.tcp.checksum = hdr.tcp.checksum + ~meta.headerdiff +1;
}
action delta_ipv4_from_v6_to_v4()