02-14-2024 01:30 AM - edited 02-14-2024 01:31 AM
Hello,
I am trying to preload a number of packages to the exanic card, and send them sequentially (in a for loop). I am using the example given here:
https://github.com/cisco/exanic-software/blob/master/examples/exasock/tcp-preload-slot.c
However, from my understanding, in this example all slots have the same TCP/IP header, therefore the same sequence number. Because only one of the slots will be sent. I want to send all of them one by one. How can I increase the sequence number to the next sequence number while loading packages?
Thanks in advance.
Kind regards
Solved! Go to Solution.
02-14-2024 07:36 AM
I think you are right with the tcp-preload-slot.c example only sending one packet being due to all slots having the same sequence number. Sending multiple preloaded packets sequentially with increasing sequence numbers, you could perhaps modify the existing tcp-preload-slot.c? For example.
Warning! Incorrect manipulation can disrupt the TCP flow and lead to issues.
02-14-2024 07:36 AM
I think you are right with the tcp-preload-slot.c example only sending one packet being due to all slots having the same sequence number. Sending multiple preloaded packets sequentially with increasing sequence numbers, you could perhaps modify the existing tcp-preload-slot.c? For example.
Warning! Incorrect manipulation can disrupt the TCP flow and lead to issues.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide