diff options
Diffstat (limited to 'include/linux/sctp.h')
-rw-r--r-- | include/linux/sctp.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index c11a28706fa4..3bfe8d6ee248 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h | |||
@@ -53,7 +53,9 @@ | |||
53 | 53 | ||
54 | #include <linux/in.h> /* We need in_addr. */ | 54 | #include <linux/in.h> /* We need in_addr. */ |
55 | #include <linux/in6.h> /* We need in6_addr. */ | 55 | #include <linux/in6.h> /* We need in6_addr. */ |
56 | #include <linux/skbuff.h> | ||
56 | 57 | ||
58 | #include <uapi/linux/sctp.h> | ||
57 | 59 | ||
58 | /* Section 3.1. SCTP Common Header Format */ | 60 | /* Section 3.1. SCTP Common Header Format */ |
59 | typedef struct sctphdr { | 61 | typedef struct sctphdr { |
@@ -63,14 +65,10 @@ typedef struct sctphdr { | |||
63 | __le32 checksum; | 65 | __le32 checksum; |
64 | } __packed sctp_sctphdr_t; | 66 | } __packed sctp_sctphdr_t; |
65 | 67 | ||
66 | #ifdef __KERNEL__ | ||
67 | #include <linux/skbuff.h> | ||
68 | |||
69 | static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb) | 68 | static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb) |
70 | { | 69 | { |
71 | return (struct sctphdr *)skb_transport_header(skb); | 70 | return (struct sctphdr *)skb_transport_header(skb); |
72 | } | 71 | } |
73 | #endif | ||
74 | 72 | ||
75 | /* Section 3.2. Chunk Field Descriptions. */ | 73 | /* Section 3.2. Chunk Field Descriptions. */ |
76 | typedef struct sctp_chunkhdr { | 74 | typedef struct sctp_chunkhdr { |