|
@@ -311,8 +311,6 @@ struct nf_queue_entry;
|
|
|
|
|
|
struct nf_afinfo {
|
|
|
unsigned short family;
|
|
|
- __sum16 (*checksum)(struct sk_buff *skb, unsigned int hook,
|
|
|
- unsigned int dataoff, u_int8_t protocol);
|
|
|
__sum16 (*checksum_partial)(struct sk_buff *skb,
|
|
|
unsigned int hook,
|
|
|
unsigned int dataoff,
|
|
@@ -333,20 +331,9 @@ static inline const struct nf_afinfo *nf_get_afinfo(unsigned short family)
|
|
|
return rcu_dereference(nf_afinfo[family]);
|
|
|
}
|
|
|
|
|
|
-static inline __sum16
|
|
|
-nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff,
|
|
|
- u_int8_t protocol, unsigned short family)
|
|
|
-{
|
|
|
- const struct nf_afinfo *afinfo;
|
|
|
- __sum16 csum = 0;
|
|
|
-
|
|
|
- rcu_read_lock();
|
|
|
- afinfo = nf_get_afinfo(family);
|
|
|
- if (afinfo)
|
|
|
- csum = afinfo->checksum(skb, hook, dataoff, protocol);
|
|
|
- rcu_read_unlock();
|
|
|
- return csum;
|
|
|
-}
|
|
|
+__sum16 nf_checksum(struct sk_buff *skb, unsigned int hook,
|
|
|
+ unsigned int dataoff, u_int8_t protocol,
|
|
|
+ unsigned short family);
|
|
|
|
|
|
static inline __sum16
|
|
|
nf_checksum_partial(struct sk_buff *skb, unsigned int hook,
|