From 9f94f8fa2fe53e241b6417056e04d45ca7b577f5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 10 Dec 2010 14:39:25 -0800 Subject: [PATCH] datapath: Include 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 being included indirectly, but this didn't always happen. Signed-off-by: Ben Pfaff Acked-by: Jesse Gross --- datapath/linux-2.6/compat-2.6/include/linux/ip.h | 1 + 1 file changed, 1 insertion(+) 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 #ifndef HAVE_SKBUFF_HEADER_HELPERS +#include static inline struct iphdr *ip_hdr(const struct sk_buff *skb) { return (struct iphdr *)skb_network_header(skb); -- 2.30.2