Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet - comments
details: https://anonhg.NetBSD.org/src/rev/016c5c6f5c39
branches: trunk
changeset: 764255:016c5c6f5c39
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Apr 14 15:54:31 2011 +0000
description:
- comments
- whitespace
diffstat:
sys/netinet/tcp_sack.c | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diffs (77 lines):
diff -r 3867dbee1de5 -r 016c5c6f5c39 sys/netinet/tcp_sack.c
--- a/sys/netinet/tcp_sack.c Thu Apr 14 15:53:36 2011 +0000
+++ b/sys/netinet/tcp_sack.c Thu Apr 14 15:54:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_sack.c,v 1.25 2009/05/27 17:41:03 pooka Exp $ */
+/* $NetBSD: tcp_sack.c,v 1.26 2011/04/14 15:54:31 yamt Exp $ */
/*
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_sack.c,v 1.25 2009/05/27 17:41:03 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_sack.c,v 1.26 2011/04/14 15:54:31 yamt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -226,9 +226,14 @@
return next;
}
+/*
+ * tcp_new_dsack: record the reception of a duplicated segment.
+ */
+
void
tcp_new_dsack(struct tcpcb *tp, tcp_seq seq, u_int32_t len)
{
+
if (TCP_SACK_ENABLED(tp)) {
tp->rcv_dsack_block.left = seq;
tp->rcv_dsack_block.right = seq + len;
@@ -236,6 +241,10 @@
}
}
+/*
+ * tcp_sack_option: parse the given SACK option and update the scoreboard.
+ */
+
void
tcp_sack_option(struct tcpcb *tp, const struct tcphdr *th, const u_char *cp,
int optlen)
@@ -394,6 +403,10 @@
}
}
+/*
+ * tcp_del_sackholes: remove holes covered by a cumulative ACK.
+ */
+
void
tcp_del_sackholes(struct tcpcb *tp, const struct tcphdr *th)
{
@@ -415,6 +428,10 @@
}
}
+/*
+ * tcp_free_sackholes: clear the scoreboard.
+ */
+
void
tcp_free_sackholes(struct tcpcb *tp)
{
@@ -556,6 +573,10 @@
return;
}
+/*
+ * tcp_sack_numblks: return the number of SACK blocks to send.
+ */
+
int
tcp_sack_numblks(const struct tcpcb *tp)
{
Home |
Main Index |
Thread Index |
Old Index