summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2002-01-14 19:58:19 +0000
committerNiels Provos <provos@cvs.openbsd.org>2002-01-14 19:58:19 +0000
commit3a0ecce27eaf7ab0202df1cd706c435da4e87afc (patch)
tree615042aebf16e5935ba0cc4964f8deb8f9a84326 /sys
parentcdc7f36533d756b5d1750ff38245ebfb7b192880 (diff)
knf
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_output.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index a93512e172f..25161e896cb 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.45 2002/01/14 03:11:55 provos Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.46 2002/01/14 19:58:18 provos Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -119,17 +119,18 @@ extern int tcprexmtthresh;
#ifdef TCP_SACK
#ifdef TCP_SACK_DEBUG
+void tcp_print_holes(struct tcpcb *tp);
+
void
-tcp_print_holes(tp)
-struct tcpcb *tp;
+tcp_print_holes(struct tcpcb *tp)
{
struct sackhole *p = tp->snd_holes;
if (p == 0)
return;
printf("Hole report: start--end dups rxmit\n");
while (p) {
- printf("%x--%x d %d r %x\n", p->start, p->end, p->dups,
- p->rxmit);
+ printf("%x--%x d %d r %x\n", p->start, p->end, p->dups,
+ p->rxmit);
p = p->next;
}
printf("\n");
@@ -141,12 +142,11 @@ struct tcpcb *tp;
* NULL otherwise.
*/
struct sackhole *
-tcp_sack_output(tp)
-register struct tcpcb *tp;
+tcp_sack_output(struct tcpcb *tp)
{
struct sackhole *p;
if (tp->sack_disable)
- return 0;
+ return (NULL);
p = tp->snd_holes;
while (p) {
#ifndef TCP_FACK
@@ -168,11 +168,11 @@ register struct tcpcb *tp;
if (p)
tcp_print_holes(tp);
#endif
- return p;
+ return (p);
}
p = p->next;
}
- return 0;
+ return (NULL);
}
/*
@@ -180,12 +180,12 @@ register struct tcpcb *tp;
* should be used to avoid retransmitting SACKed data. This function
* traverses the SACK list to see if snd_nxt should be moved forward.
*/
+
void
-tcp_sack_adjust(tp)
- struct tcpcb *tp;
+tcp_sack_adjust(struct tcpcb *tp)
{
struct sackhole *cur = tp->snd_holes;
- if (cur == 0)
+ if (cur == NULL)
return; /* No holes */
if (SEQ_GEQ(tp->snd_nxt, tp->rcv_lastsack))
return; /* We're already beyond any SACKed blocks */