Make datapath's flow_extract() properly pull data into the headers.
[sliver-openvswitch.git] / datapath / linux-2.4 / compat-2.4 / include / linux / ip.h
index b2fbdb9..990a575 100644 (file)
@@ -10,6 +10,11 @@ static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
 {
        return (struct iphdr *)skb_network_header(skb);
 }
+
+static inline unsigned int ip_hdrlen(const struct sk_buff *skb)
+{
+       return ip_hdr(skb)->ihl * 4;
+}
 #endif
 
 #endif