mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[SCTP]: Introduce sctp_hdr()
For consistency with all the other skb->h.raw accessors. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
967b05f64e
commit
2c0fd387b0
4 changed files with 20 additions and 17 deletions
|
@ -63,6 +63,15 @@ typedef struct sctphdr {
|
|||
__be32 checksum;
|
||||
} __attribute__((packed)) sctp_sctphdr_t;
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#include <linux/skbuff.h>
|
||||
|
||||
static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb)
|
||||
{
|
||||
return (struct sctphdr *)skb->h.raw;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Section 3.2. Chunk Field Descriptions. */
|
||||
typedef struct sctp_chunkhdr {
|
||||
__u8 type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue