Skip to content

Commit 903fc19

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

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
@@ -33,7 +33,7 @@ DECLARE_SNMP_STAT(struct icmp_mib, icmp_statistics);
3333
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)
36-
#define ICMPMSGOUT_INC_STATS(field) SNMP_INC_STATS(icmpmsg_statistics, field+256)
36+
#define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS(icmpmsg_statistics, field+256)
3737
#define ICMPMSGIN_INC_STATS_BH(field) SNMP_INC_STATS_BH(icmpmsg_statistics, field)
3838

3939
struct dst_entry;

net/ipv4/icmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static inline int icmpv4_xrlim_allow(struct net *net, struct rtable *rt,
298298
*/
299299
void icmp_out_count(struct net *net, unsigned char type)
300300
{
301-
ICMPMSGOUT_INC_STATS(type);
301+
ICMPMSGOUT_INC_STATS(net, type);
302302
ICMP_INC_STATS(net, ICMP_MIB_OUTMSGS);
303303
}
304304

0 commit comments

Comments
 (0)