diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2010-02-11 08:40:20 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2010-02-11 08:40:20 +0000 |
commit | a9f0a09c021204f736c2bd30e4ae16bbb553336d (patch) | |
tree | 347932fd2b1a795df8d0af5af9b8c1a3c088de0d /target/linux/generic-2.6/patches-2.6.21/999-backport_ip_hdr_and_friends.patch | |
parent | 7b367d03131e3ea6366acd813b7ba58994705adb (diff) | |
download | master-31e0f0ae-a9f0a09c021204f736c2bd30e4ae16bbb553336d.tar.gz master-31e0f0ae-a9f0a09c021204f736c2bd30e4ae16bbb553336d.tar.bz2 master-31e0f0ae-a9f0a09c021204f736c2bd30e4ae16bbb553336d.zip |
remove 2.6.21 patches and config, too
SVN-Revision: 19579
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.21/999-backport_ip_hdr_and_friends.patch')
-rw-r--r-- | target/linux/generic-2.6/patches-2.6.21/999-backport_ip_hdr_and_friends.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.21/999-backport_ip_hdr_and_friends.patch b/target/linux/generic-2.6/patches-2.6.21/999-backport_ip_hdr_and_friends.patch deleted file mode 100644 index 9ec3b44db5..0000000000 --- a/target/linux/generic-2.6/patches-2.6.21/999-backport_ip_hdr_and_friends.patch +++ /dev/null @@ -1,52 +0,0 @@ ---- a/include/linux/ip.h -+++ b/include/linux/ip.h -@@ -104,6 +104,16 @@ struct iphdr { - /*The options start here. */ - }; - -+#ifdef __KERNEL__ -+#include <linux/skbuff.h> -+ -+static inline struct iphdr *ip_hdr(const struct sk_buff *skb) -+{ -+ return (struct iphdr *)skb_network_header(skb); -+} -+ -+#endif -+ - struct ip_auth_hdr { - __u8 nexthdr; - __u8 hdrlen; /* This one is measured in 32 bit units! */ ---- a/include/linux/skbuff.h -+++ b/include/linux/skbuff.h -@@ -966,6 +966,16 @@ static inline void skb_reserve(struct sk - skb->tail += len; - } - -+static inline unsigned char *skb_network_header(const struct sk_buff *skb) -+{ -+ return skb->nh.raw; -+} -+ -+static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) -+{ -+ return skb->tail; -+} -+ - /* - * CPUs often take a performance hit when accessing unaligned memory - * locations. The actual performance hit varies, it can be small if the ---- a/include/net/ip.h -+++ b/include/net/ip.h -@@ -43,6 +43,11 @@ struct inet_skb_parm - #define IPSKB_REROUTED 16 - }; - -+static inline unsigned int ip_hdrlen(const struct sk_buff *skb) -+{ -+ return ip_hdr(skb)->ihl * 4; -+} -+ - struct ipcm_cookie - { - __be32 addr; |