Skip to content

Commit f66ac03

Browse files
xemuldavem330
authored andcommitted
mib: add struct net to ICMPMSGIN_INC_STATS_BH
Signed-off-by: Pavel Emelyanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 903fc19 commit f66ac03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/net/icmp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ DECLARE_SNMP_STAT(struct icmpmsg_mib, icmpmsg_statistics);
3434
#define ICMP_INC_STATS(net, field) SNMP_INC_STATS(icmp_statistics, field)
3535
#define ICMP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH(icmp_statistics, field)
3636
#define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS(icmpmsg_statistics, field+256)
37-
#define ICMPMSGIN_INC_STATS_BH(field) SNMP_INC_STATS_BH(icmpmsg_statistics, field)
37+
#define ICMPMSGIN_INC_STATS_BH(net, field) SNMP_INC_STATS_BH(icmpmsg_statistics, field)
3838

3939
struct dst_entry;
4040
struct net_proto_family;

net/ipv4/icmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ int icmp_rcv(struct sk_buff *skb)
10121012

10131013
icmph = icmp_hdr(skb);
10141014

1015-
ICMPMSGIN_INC_STATS_BH(icmph->type);
1015+
ICMPMSGIN_INC_STATS_BH(net, icmph->type);
10161016
/*
10171017
* 18 is the highest 'known' ICMP type. Anything else is a mystery
10181018
*

0 commit comments

Comments
 (0)