From: Aaron R. <ar...@cl...> - 2011-08-02 17:15:54
|
Sorry, I found it in: include/linux/sctp.h, though I'm still curious why checksum isn't defined in the structure in my previous email. Thanks, Aaron typedef struct sctphdr { __be16 source; __be16 dest; __be32 vtag; __le32 checksum; } __packed sctp_sctphdr_t; On Tue, Aug 2, 2011 at 1:07 PM, Aaron Rosen <ar...@cl...> wrote: > Hello, > > I'm trying to figure out where in the linux source code is the packet > header defined. > > I've found (below) in include/net/sctp/structs.h but I'm confused why > there is no _u32 checksum after vtag as specified here: > http://www.ietf.org/rfc/rfc2960.txt > > Thanks, > > Aaron > > struct sctp_packet { > /* These are the SCTP header values (host order) for the packet. */ > __u16 source_port; > __u16 destination_port; > __u32 vtag; > > /* This contains the payload chunks. */ > struct list_head chunk_list; > > /* This is the overhead of the sctp and ip headers. */ > size_t overhead; > /* This is the total size of all chunks INCLUDING padding. */ > size_t size; > > /* The packet is destined for this transport address. > * The function we finally use to pass down to the next lower > * layer lives in the transport structure. > */ > struct sctp_transport *transport; > > /* pointer to the auth chunk for this packet */ > struct sctp_chunk *auth; > > u8 has_cookie_echo:1, /* This packet contains a COOKIE-ECHO chunk. */ > has_sack:1, /* This packet contains a SACK chunk. */ > has_auth:1, /* This packet contains an AUTH chunk */ > has_data:1, /* This packet contains at least 1 DATA chunk */ > ipfragok:1, /* So let ip fragment this packet */ > malloced:1; /* Is it malloced? */ > }; > > > > -- > Aaron O. Rosen > Masters Student - Network Communication > 306B Fluor Daniel > -- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel |