Jump to content

 

I'm writing a program to replay packets from captures. I'm only sending packets with a specific IP and capturing those replies. 

 

My question is, all i care about are the seq/ack numbers from the TCP header. I'm using pcap_activate() with provides me the ability to select a "snaplen." 

 

How far into the packet do I need to read to get only the seq and ack numbers? Everything else can be truncated and discarded. 

 

Any help would be appreciated. 

 

I'm using c, and libdnet if it matters. 

Link to comment
https://linustechtips.com/topic/585820-capturing-packets-question/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×