]> git.pld-linux.org Git - packages/ipset.git/blob - ipset-kernel-3.3.patch
- fix build with linux 3.3
[packages/ipset.git] / ipset-kernel-3.3.patch
1 --- ipset-6.11/kernel/net/netfilter/ipset/ip_set_getport.c~     2012-01-13 21:26:27.000000000 +0100
2 +++ ipset-6.11/kernel/net/netfilter/ipset/ip_set_getport.c      2012-04-06 22:33:28.410967308 +0200
3 @@ -119,9 +119,16 @@
4  {
5         int protoff;
6         u8 nexthdr;
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
8 +       __be16 frag_off;
9 +#endif
10  
11         nexthdr = ipv6_hdr(skb)->nexthdr;
12 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
13 +       protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, &frag_off);
14 +#else
15         protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr);
16 +#endif
17         if (protoff < 0)
18                 return false;
19  
20 --- ipset-6.11/kernel/net/netfilter/ipset/ip_set_hash_ip.c~     2011-10-04 17:18:10.000000000 +0200
21 +++ ipset-6.11/kernel/net/netfilter/ipset/ip_set_hash_ip.c      2012-04-06 22:35:56.923721440 +0200
22 @@ -241,7 +241,11 @@
23  static inline void
24  hash_ip6_data_copy(struct hash_ip6_elem *dst, const struct hash_ip6_elem *src)
25  {
26 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
27 +       dst->ip.in6 = src->ip.in6;
28 +#else
29         ipv6_addr_copy(&dst->ip.in6, &src->ip.in6);
30 +#endif
31  }
32  
33  static inline void
This page took 0.034159 seconds and 3 git commands to generate.