aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-07-15 02:03:00 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-15 02:05:29 -0400
commitdcfc23cac103b54dbc00a6f52f47656ad5c75844 (patch)
treef9a61572791da6c37a50a2d17b73b5f89a6b5fc4 /net/sctp
parent75c939bb4d6da790f758a2a3dcc7432f6d8778ee (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.c5
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 @@
61#include <net/sctp/sctp.h> 61#include <net/sctp/sctp.h>
62#include <net/sctp/sm.h> 62#include <net/sctp/sm.h>
63#include <net/sctp/checksum.h> 63#include <net/sctp/checksum.h>
64#include <net/net_namespace.h>
64 65
65/* Forward declarations for internal helpers. */ 66/* Forward declarations for internal helpers. */
66static int sctp_rcv_ootb(struct sk_buff *); 67static int sctp_rcv_ootb(struct sk_buff *);
@@ -534,7 +535,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info)
534 int err; 535 int err;
535 536
536 if (skb->len < ihlen + 8) { 537 if (skb->len < ihlen + 8) {
537 ICMP_INC_STATS_BH(ICMP_MIB_INERRORS); 538 ICMP_INC_STATS_BH(&init_net, ICMP_MIB_INERRORS);
538 return; 539 return;
539 } 540 }
540 541
@@ -548,7 +549,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info)
548 skb->network_header = saveip; 549 skb->network_header = saveip;
549 skb->transport_header = savesctp; 550 skb->transport_header = savesctp;
550 if (!sk) { 551 if (!sk) {
551 ICMP_INC_STATS_BH(ICMP_MIB_INERRORS); 552 ICMP_INC_STATS_BH(&init_net, ICMP_MIB_INERRORS);
552 return; 553 return;
553 } 554 }
554 /* Warning: The sock lock is held. Remember to call 555 /* Warning: The sock lock is held. Remember to call