summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-06-04 08:03:28 +0000
committerps <ps@FreeBSD.org>2005-06-04 08:03:28 +0000
commitc6eb61a11ea3adf61348b7d21f3f7330e0bf52c3 (patch)
treeafc88438ba993df2ee2f16ff2f749cc3da8fae18 /sys/netinet/tcp_var.h
parentef107219f8af88448cd689ba7f9f7de2891105f5 (diff)
downloadFreeBSD-src-c6eb61a11ea3adf61348b7d21f3f7330e0bf52c3.zip
FreeBSD-src-c6eb61a11ea3adf61348b7d21f3f7330e0bf52c3.tar.gz
Changes to tcp_sack_option() that
- Walks the scoreboard backwards from the tail to reduce the number of comparisons for each sack option received. - Introduce functions to add/remove sack scoreboard elements, making the code more readable. Submitted by: Noritoshi Demizu Reviewed by: Raja Mukerji, Mohan Srinivasan
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 108c1a6..d2f34ea 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -191,7 +191,8 @@ struct tcpcb {
/* SACK related state */
int sack_enable; /* enable SACK for this connection */
int snd_numholes; /* number of holes seen by sender */
- TAILQ_HEAD(, sackhole) snd_holes; /* SACK scoreboard (sorted) */
+ TAILQ_HEAD(sackhole_head, sackhole) snd_holes;
+ /* SACK scoreboard (sorted) */
tcp_seq snd_fack; /* last seq number(+1) sack'd by rcv'r*/
int rcv_numsacks; /* # distinct sack blks present */
struct sackblk sackblks[MAX_SACK_BLKS]; /* seq nos. of sack blocks */
OpenPOWER on IntegriCloud