diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-16 01:07:24 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-16 01:07:24 +0000 |
commit | 95db6b748fc86297827fbd9c9ef174d491c9ad89 (patch) | |
tree | 27a92a942821cde1edda9a1b088718d436b3efe4 /net/ipv4/syncookies.c | |
parent | 45b27b0a0652331d104c953a5b192d843fff88f8 (diff) |
Merge with Linux 2.3.40.
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 086da77c2..e82233cfd 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c @@ -9,7 +9,7 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * - * $Id: syncookies.c,v 1.9 1999/08/23 06:30:34 davem Exp $ + * $Id: syncookies.c,v 1.10 2000/01/09 02:19:35 davem Exp $ * * Missing: IPv6 support. */ @@ -60,7 +60,7 @@ __u32 cookie_v4_init_sequence(struct sock *sk, struct sk_buff *skb, ; *mssp = msstab[mssind]+1; - net_statistics.SyncookiesSent++; + NET_INC_STATS_BH(SyncookiesSent); return secure_tcp_syn_cookie(skb->nh.iph->saddr, skb->nh.iph->daddr, skb->h.th->source, skb->h.th->dest, @@ -137,11 +137,11 @@ cookie_v4_check(struct sock *sk, struct sk_buff *skb, struct ip_options *opt) mss = cookie_check(skb, cookie); if (mss == 0) { - net_statistics.SyncookiesFailed++; + NET_INC_STATS_BH(SyncookiesFailed); return sk; } - net_statistics.SyncookiesRecv++; + NET_INC_STATS_BH(SyncookiesRecv); req = tcp_openreq_alloc(); if (req == NULL) |