Can anyone tell me what headers I need to include to use struct iphdr and struct tcphdr?
Thanks.
Can anyone tell me what headers I need to include to use struct iphdr and struct tcphdr?
Thanks.
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
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...
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler