diff options
| author | Ivan Kokshaysky <ink@jurassic.park.msu.ru> | 2003-03-31 17:08:10 -0800 |
|---|---|---|
| committer | James Morris <jmorris@intercode.com.au> | 2003-03-31 17:08:10 -0800 |
| commit | 0498603bab5eba54a087d3193fbb8d29ce3e451c (patch) | |
| tree | df5fad7918dce769fd2d8a0f2c22c7c1f23421be /include | |
| parent | 017091704fc496fd59f49591d09165984dc3cbb5 (diff) | |
[NET]: Fix pointer arith in ICMP stats.
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/icmp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/icmp.h b/include/net/icmp.h index 2e11a0b2355c..81c6a6c84e02 100644 --- a/include/net/icmp.h +++ b/include/net/icmp.h @@ -39,15 +39,15 @@ DECLARE_SNMP_STAT(struct icmp_mib, icmp_statistics); #define ICMP_INC_STATS_FIELD(offt) \ (*((unsigned long *) ((void *) \ per_cpu_ptr(icmp_statistics[!in_softirq()],\ - smp_processor_id())) + offt))++; + smp_processor_id()) + offt)))++ #define ICMP_INC_STATS_BH_FIELD(offt) \ (*((unsigned long *) ((void *) \ per_cpu_ptr(icmp_statistics[0], \ - smp_processor_id())) + offt))++; + smp_processor_id()) + offt)))++ #define ICMP_INC_STATS_USER_FIELD(offt) \ (*((unsigned long *) ((void *) \ per_cpu_ptr(icmp_statistics[1], \ - smp_processor_id())) + offt))++; + smp_processor_id()) + offt)))++ extern void icmp_send(struct sk_buff *skb_in, int type, int code, u32 info); extern int icmp_rcv(struct sk_buff *skb); |
