c - structs for IP, TCP and VLAN -


Recently I have inherited a nearly 7-year-old codebase, including the library, with the public headers along with IP, TCP definition,

# defined TCP_NODELAY 1 ).

I tried to find the headers with these strings but I could not find anything (this is primary on linux, but also various BSD-variants). Must definitely have a header for this?

I think that net / ethernet.h helps with all definitions.

Edit : For most structures I am looking for: struct tcphdr in netinet / tcp.h Netinet / ip.h in netinet / udp.h
struct ip in struct udphdr >

Does anyone have a clue about a structure with Vlan-header? - Type F | Xargs grep TCP_NODELAY

Where TCP_NODELAY is the symbol you are looking for.

You can see all the symbols at the same time by typing them in a file (one per line), and using grep -f FILE .

Comments