~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to datapath/linux/compat/include/net/flow_keys.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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,3,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