I used a small python script(from github) to test netfilter hooks and used scapy for sniffing packets.
You can check the script on below link https://gist.github.com/eXenon/85a3eab09fefbb3bee5d#file-scapy_bridge-py
The script modifies payload length and checksum at tcp and ip layers before relaying it but it also causes Spurious transmission when checked in wireshark.
Can someone help me figure out the reason for Spurious retransmission in this case?