I am searching for a method how I practically can determine the segments within a TCP window both when sending and receiving them?
I want to modify IP packets per TCP window.
I already looked into the IP and TCP header definition, took a look at TCP/IP packets using Wireshark and searched for python libraries, but did not find related work.
How to create a mapping between TCP segments or IP packets or fragments and TCP Windows?
I assume that knowledge on the start segment and end segment of a window might solve the problem.
I appreciate any answer, including theoretical approaches, that help determining what to do.
System is Linux using IPv6, though a generic answer is preferred.