diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-14 23:03:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-14 23:05:29 -0700 |
commit | dcfc23cac103b54dbc00a6f52f47656ad5c75844 (patch) | |
tree | f9a61572791da6c37a50a2d17b73b5f89a6b5fc4 /net/sctp | |
parent | 75c939bb4d6da790f758a2a3dcc7432f6d8778ee (diff) |
mib: add struct net to ICMP_INC_STATS_BH
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index d354a23972d..ed8834e7f14 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c @@ -61,6 +61,7 @@ #include <net/sctp/sctp.h> #include <net/sctp/sm.h> #include <net/sctp/checksum.h> +#include <net/net_namespace.h> /* Forward declarations for internal helpers. */ static int sctp_rcv_ootb(struct sk_buff *); @@ -534,7 +535,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info) int err; if (skb->len < ihlen + 8) { - ICMP_INC_STATS_BH(ICMP_MIB_INERRORS); + ICMP_INC_STATS_BH(&init_net, ICMP_MIB_INERRORS); return; } @@ -548,7 +549,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info) skb->network_header = saveip; skb->transport_header = savesctp; if (!sk) { - ICMP_INC_STATS_BH(ICMP_MIB_INERRORS); + ICMP_INC_STATS_BH(&init_net, ICMP_MIB_INERRORS); return; } /* Warning: The sock lock is held. Remember to call |