Can anyone tell me what headers I need to include to use struct iphdr and struct tcphdr?
Thanks.
Printable View
Can anyone tell me what headers I need to include to use struct iphdr and struct tcphdr?
Thanks.
If google had been any help, I wouldn't have posted. I just ended up defining them myself from the linux definitions.
if google is of no help - maybe problem is not in google, but in a user?
most links specify that required include is ip.h
on my system it is located in /usr/include/linux/ip.h
after including this file - iphdr struct was recognized by compiler. so google was right this time...