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

« back to all changes in this revision

Viewing changes to datapath/compat.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:
94
94
}
95
95
#endif /* after 2.6.20 */
96
96
 
 
97
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
 
98
#define rt_dst(rt) (rt->dst)
 
99
#else
 
100
#define rt_dst(rt) (rt->u.dst)
 
101
#endif
 
102
 
 
103
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
 
104
#define inet_sport(sk)  (inet_sk(sk)->sport)
 
105
#else
 
106
#define inet_sport(sk)  (inet_sk(sk)->inet_sport)
 
107
#endif
 
108
 
97
109
#endif /* compat.h */