diff options
author | 2004-04-20 20:05:29 +0000 | |
---|---|---|
committer | 2004-04-20 20:05:29 +0000 | |
commit | dee8b2d7568da86dffadd5f84b80b3adbcc0d777 (patch) | |
tree | 93722743855426cbffbfba93cffcd26adba03927 | |
parent | be more precise about devices creation since the "Build Devices" part (diff) | |
download | wireguard-openbsd-dee8b2d7568da86dffadd5f84b80b3adbcc0d777.tar.xz wireguard-openbsd-dee8b2d7568da86dffadd5f84b80b3adbcc0d777.zip |
add tcps_rcvacktooold; ok deraadt
-rw-r--r-- | sys/netinet/tcp_input.c | 4 | ||||
-rw-r--r-- | sys/netinet/tcp_var.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 0aeec8e2dd0..f0cffa74bb5 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.163 2004/04/15 12:05:34 grange Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.164 2004/04/20 20:05:29 markus Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -1535,7 +1535,7 @@ trimthenstep6: if (th->th_seq != tp->rcv_nxt && SEQ_LT(th->th_ack, tp->snd_una - tp->max_sndwnd)) { - /* XXX stat */ + tcpstat.tcps_rcvacktooold++; goto drop; } break; diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index c4a619de4b5..30b9f4aa41c 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_var.h,v 1.61 2004/03/02 12:51:12 markus Exp $ */ +/* $OpenBSD: tcp_var.h,v 1.62 2004/04/20 20:05:29 markus Exp $ */ /* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */ /* @@ -397,6 +397,7 @@ struct tcpstat { u_int32_t tcps_rcvwinprobe; /* rcvd window probe packets */ u_int32_t tcps_rcvdupack; /* rcvd duplicate acks */ u_int32_t tcps_rcvacktoomuch; /* rcvd acks for unsent data */ + u_int32_t tcps_rcvacktooold; /* rcvd acks for old data */ u_int32_t tcps_rcvackpack; /* rcvd ack packets */ u_int64_t tcps_rcvackbyte; /* bytes acked by rcvd acks */ u_int32_t tcps_rcvwinupd; /* rcvd window update packets */ |