]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/udp.h
[NET]: rfkill: add support for input key to control wireless radio
[linux-2.6-omap-h63xx.git] / include / linux / udp.h
index 7e08c07efe0fa001f59a0c0c36d03c5a2fa52590..6de445c31a6492ae2aee3d1a906a7e993c3b64cb 100644 (file)
@@ -26,6 +26,15 @@ struct udphdr {
        __sum16 check;
 };
 
+#ifdef __KERNEL__
+#include <linux/skbuff.h>
+
+static inline struct udphdr *udp_hdr(const struct sk_buff *skb)
+{
+       return (struct udphdr *)skb_transport_header(skb);
+}
+#endif
+
 /* UDP socket options */
 #define UDP_CORK       1       /* Never send partially complete segments */
 #define UDP_ENCAP      100     /* Set the socket to accept encapsulated packets */