]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/sctp.h
phylib: add RGMII-ID interface mode definition
[linux-2.6-omap-h63xx.git] / include / linux / sctp.h
index d4f86560bfff550dbfd15b59bfcccb08cd347a86..d70df61a029f78a8c2234bde6f6625b4c0f71cf2 100644 (file)
@@ -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_transport_header(skb);
+}
+#endif
+
 /* Section 3.2.  Chunk Field Descriptions. */
 typedef struct sctp_chunkhdr {
        __u8 type;