Link to home
Start Free TrialLog in
Avatar of FireBall
FireBall

asked on

Linux/ip.h library

Hello ,

For a project we are using ip.h library of the linux.
As far as i check the library , http://www.cse.scu.edu/~dclark/am_256_graph_theory/linux_2_6_stack/linux_2ip_8h-source.html  , i could not find a way to check Window size , is there any way to read complete packet hex with this library and get the window size of packet hex like given below :

			long dec_Window_size = std::stol (packet_hex.substr(96,4),nullptr,16);

Open in new window

Avatar of arnold
arnold
Flag of United States of America image

Window size is control on the transport/TCP.h layer if not mistaken.
In ip.h you have the mtu.
Avatar of FireBall
FireBall

ASKER

See line 519, 630,631

http://www.cse.scu.edu/~dclark/am_256_graph_theory/linux_2_6_stack/net_2tcp_8h-source.html

The windowing is handled within the transport .......

The packets are reassembled ..........
You need to include Linux/TCP.h that are system wide, the link you are posting is of a modified alternate use TCP.h that either modifies or adds to ....
should i read the data container on udp / tcp with udp.h & tcp.h libraries ?
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am unsure on what you are after, hopefully this http://www.diag.com/reports/TCPWindows.html covers the scaling/shifting that might refocus ...

Window size/scaling is set in the kernel.
Your application will be dependent/subordinate..

Are you trying to "predict" such that your app will ..
Though your app analyzes received data, what is the significance of window size for your analysis?
If you should help me to find a sample i will be glad for this because i could not.
Thank you