766b4b37685ceeca9db7f71595ed93a573d49c66
[cascardo/ovs.git] / datapath / linux / compat / include / net / flow_keys.h
1 #ifndef _NET_FLOW_KEYS_WRAPPER_H
2 #define _NET_FLOW_KEYS_WRAPPER_H
3
4 #include <linux/version.h>
5
6 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
7 #include_next <net/flow_keys.h>
8 #else
9 struct flow_keys {
10         /* (src,dst) must be grouped, in the same way than in IP header */
11         __be32 src;
12         __be32 dst;
13         union {
14                 __be32 ports;
15                 __be16 port16[2];
16         };
17         u16 thoff;
18         u8 ip_proto;
19 };
20 #endif
21
22 #endif