diff options
Diffstat (limited to 'include/linux/sctp.h')
-rw-r--r-- | include/linux/sctp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index d4f86560bfff..d70df61a029f 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h | |||
@@ -63,6 +63,15 @@ typedef struct sctphdr { | |||
63 | __be32 checksum; | 63 | __be32 checksum; |
64 | } __attribute__((packed)) sctp_sctphdr_t; | 64 | } __attribute__((packed)) sctp_sctphdr_t; |
65 | 65 | ||
66 | #ifdef __KERNEL__ | ||
67 | #include <linux/skbuff.h> | ||
68 | |||
69 | static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb) | ||
70 | { | ||
71 | return (struct sctphdr *)skb_transport_header(skb); | ||
72 | } | ||
73 | #endif | ||
74 | |||
66 | /* Section 3.2. Chunk Field Descriptions. */ | 75 | /* Section 3.2. Chunk Field Descriptions. */ |
67 | typedef struct sctp_chunkhdr { | 76 | typedef struct sctp_chunkhdr { |
68 | __u8 type; | 77 | __u8 type; |