diff options
| author | David S. Miller <davem@davemloft.net> | 2011-04-05 17:21:11 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-04-05 17:21:11 -0400 |
| commit | 9d9305949778c41b92d4394a2f2a6bcdb1c41a9c (patch) | |
| tree | d49d536ae8156ad9989dc7b26e3897f21e549b02 /include | |
| parent | 738faca34335cd1d5d87fa7c58703139c7fa15bd (diff) | |
| parent | 96120d86fe302c006259baee9061eea9e1b9e486 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netfilter.h | 3 | ||||
| -rw-r--r-- | include/linux/netfilter/ipset/ip_set.h | 2 | ||||
| -rw-r--r-- | include/linux/netfilter/ipset/ip_set_ahash.h | 3 | ||||
| -rw-r--r-- | include/net/ip_vs.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index eeec00abb664..7fa95df60146 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
| @@ -270,7 +270,8 @@ struct nf_afinfo { | |||
| 270 | unsigned int dataoff, | 270 | unsigned int dataoff, |
| 271 | unsigned int len, | 271 | unsigned int len, |
| 272 | u_int8_t protocol); | 272 | u_int8_t protocol); |
| 273 | int (*route)(struct dst_entry **dst, struct flowi *fl); | 273 | int (*route)(struct net *net, struct dst_entry **dst, |
| 274 | struct flowi *fl, bool strict); | ||
| 274 | void (*saveroute)(const struct sk_buff *skb, | 275 | void (*saveroute)(const struct sk_buff *skb, |
| 275 | struct nf_queue_entry *entry); | 276 | struct nf_queue_entry *entry); |
| 276 | int (*reroute)(struct sk_buff *skb, | 277 | int (*reroute)(struct sk_buff *skb, |
diff --git a/include/linux/netfilter/ipset/ip_set.h b/include/linux/netfilter/ipset/ip_set.h index ec333d83f3b4..5a262e3ae715 100644 --- a/include/linux/netfilter/ipset/ip_set.h +++ b/include/linux/netfilter/ipset/ip_set.h | |||
| @@ -293,7 +293,7 @@ struct ip_set { | |||
| 293 | /* Lock protecting the set data */ | 293 | /* Lock protecting the set data */ |
| 294 | rwlock_t lock; | 294 | rwlock_t lock; |
| 295 | /* References to the set */ | 295 | /* References to the set */ |
| 296 | atomic_t ref; | 296 | u32 ref; |
| 297 | /* The core set type */ | 297 | /* The core set type */ |
| 298 | struct ip_set_type *type; | 298 | struct ip_set_type *type; |
| 299 | /* The type variant doing the real job */ | 299 | /* The type variant doing the real job */ |
diff --git a/include/linux/netfilter/ipset/ip_set_ahash.h b/include/linux/netfilter/ipset/ip_set_ahash.h index ec9d9bea1e37..a0196ac79051 100644 --- a/include/linux/netfilter/ipset/ip_set_ahash.h +++ b/include/linux/netfilter/ipset/ip_set_ahash.h | |||
| @@ -515,8 +515,7 @@ type_pf_head(struct ip_set *set, struct sk_buff *skb) | |||
| 515 | if (h->netmask != HOST_MASK) | 515 | if (h->netmask != HOST_MASK) |
| 516 | NLA_PUT_U8(skb, IPSET_ATTR_NETMASK, h->netmask); | 516 | NLA_PUT_U8(skb, IPSET_ATTR_NETMASK, h->netmask); |
| 517 | #endif | 517 | #endif |
| 518 | NLA_PUT_NET32(skb, IPSET_ATTR_REFERENCES, | 518 | NLA_PUT_NET32(skb, IPSET_ATTR_REFERENCES, htonl(set->ref - 1)); |
| 519 | htonl(atomic_read(&set->ref) - 1)); | ||
| 520 | NLA_PUT_NET32(skb, IPSET_ATTR_MEMSIZE, htonl(memsize)); | 519 | NLA_PUT_NET32(skb, IPSET_ATTR_MEMSIZE, htonl(memsize)); |
| 521 | if (with_timeout(h->timeout)) | 520 | if (with_timeout(h->timeout)) |
| 522 | NLA_PUT_NET32(skb, IPSET_ATTR_TIMEOUT, htonl(h->timeout)); | 521 | NLA_PUT_NET32(skb, IPSET_ATTR_TIMEOUT, htonl(h->timeout)); |
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 30b49ed72f0d..4d1b71ae82ba 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -52,7 +52,7 @@ static inline struct net *skb_net(const struct sk_buff *skb) | |||
| 52 | */ | 52 | */ |
| 53 | if (likely(skb->dev && skb->dev->nd_net)) | 53 | if (likely(skb->dev && skb->dev->nd_net)) |
| 54 | return dev_net(skb->dev); | 54 | return dev_net(skb->dev); |
| 55 | if (skb_dst(skb)->dev) | 55 | if (skb_dst(skb) && skb_dst(skb)->dev) |
| 56 | return dev_net(skb_dst(skb)->dev); | 56 | return dev_net(skb_dst(skb)->dev); |
| 57 | WARN(skb->sk, "Maybe skb_sknet should be used in %s() at line:%d\n", | 57 | WARN(skb->sk, "Maybe skb_sknet should be used in %s() at line:%d\n", |
| 58 | __func__, __LINE__); | 58 | __func__, __LINE__); |
