X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fsctp.h;h=d70df61a029f78a8c2234bde6f6625b4c0f71cf2;hb=a3e4da548328bd2bbd6265819aa19397926e5b05;hp=d4f86560bfff550dbfd15b59bfcccb08cd347a86;hpb=18ed1c051317ac3a685120cead2adb192b802347;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/sctp.h b/include/linux/sctp.h index d4f86560bff..d70df61a029 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -63,6 +63,15 @@ typedef struct sctphdr { __be32 checksum; } __attribute__((packed)) sctp_sctphdr_t; +#ifdef __KERNEL__ +#include + +static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb) +{ + return (struct sctphdr *)skb_transport_header(skb); +} +#endif + /* Section 3.2. Chunk Field Descriptions. */ typedef struct sctp_chunkhdr { __u8 type;