Skip to content

Commit 75c939b

Browse files
xemuldavem330
authored andcommitted
mib: add struct net to ICMP_INC_STATS
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 43589aa commit 75c939b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/net/icmp.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct icmp_err {
3131
extern struct icmp_err icmp_err_convert[];
3232
DECLARE_SNMP_STAT(struct icmp_mib, icmp_statistics);
3333
DECLARE_SNMP_STAT(struct icmpmsg_mib, icmpmsg_statistics);
34-
#define ICMP_INC_STATS(field) SNMP_INC_STATS(icmp_statistics, field)
34+
#define ICMP_INC_STATS(net, field) SNMP_INC_STATS(icmp_statistics, field)
3535
#define ICMP_INC_STATS_BH(field) SNMP_INC_STATS_BH(icmp_statistics, field)
3636
#define ICMPMSGOUT_INC_STATS(field) SNMP_INC_STATS(icmpmsg_statistics, field+256)
3737
#define ICMPMSGIN_INC_STATS_BH(field) SNMP_INC_STATS_BH(icmpmsg_statistics, field)

‎net/ipv4/icmp.c‎

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

305305
/*

0 commit comments

Comments
 (0)