aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-12-10 14:39:25 -0800
committerBen Pfaff <blp@nicira.com>2010-12-13 10:20:27 -0800
commit9f94f8fa2fe53e241b6417056e04d45ca7b577f5 (patch)
tree18961fa091a8f6d59e73402be270aa23c98b3b53
parent78d18dbb55dcbcf0a59bc93b0c023ab7708d974c (diff)
datapath: Include <linux/skbuff.h> directly into linux/ip.h compat.
While doing test builds on numerous kernel versions I found that one build failed because skb_network_header() wasn't visible from flow.h. I guess that we accidentally depend on <linux/netlink.h> being included indirectly, but this didn't always happen. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
-rw-r--r--datapath/linux-2.6/compat-2.6/include/linux/ip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/datapath/linux-2.6/compat-2.6/include/linux/ip.h b/datapath/linux-2.6/compat-2.6/include/linux/ip.h
index 36765396..6ff71524 100644
--- a/datapath/linux-2.6/compat-2.6/include/linux/ip.h
+++ b/datapath/linux-2.6/compat-2.6/include/linux/ip.h
@@ -4,6 +4,7 @@
#include_next <linux/ip.h>
#ifndef HAVE_SKBUFF_HEADER_HELPERS
+#include <linux/skbuff.h>
static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
{
return (struct iphdr *)skb_network_header(skb);