update tcp checksumming
This commit is contained in:
parent
26c27cefa8
commit
f0900c3821
2 changed files with 18 additions and 3 deletions
|
|
@ -73,14 +73,18 @@ action delta_udp_from_v4_to_v6()
|
|||
|
||||
action delta_tcp_from_v4_to_v6()
|
||||
{
|
||||
delta_prepare();
|
||||
hdr.tcp.checksum = hdr.tcp.checksum + meta.headerdiff;
|
||||
v4sum();
|
||||
v6sum();
|
||||
|
||||
/* here is also a possible overflow in both directions */
|
||||
hdr.tcp.checksum = hdr.tcp.checksum + meta.v6sum - meta.v4sum;
|
||||
}
|
||||
|
||||
action delta_ipv4_from_v6_to_v4()
|
||||
{
|
||||
delta_prepare();
|
||||
hdr.tcp.checksum = hdr.tcp.checksum + ~meta.headerdiff;
|
||||
/* TO BE DONE! */
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue