summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-08-29 21:59:03 +0000
committerobrien <obrien@FreeBSD.org>1999-08-29 21:59:03 +0000
commit1e6f13115f9168412089642d641e0e7f2b579549 (patch)
tree3c200ae30b9d00d3811670ec5bda8b27f5dad99f /sys/netinet
parent32578c4daf30f866799a8b844ee4984fe01dac88 (diff)
downloadFreeBSD-src-1e6f13115f9168412089642d641e0e7f2b579549.zip
FreeBSD-src-1e6f13115f9168412089642d641e0e7f2b579549.tar.gz
Remove extra indenting of `break' statements introducted in rev 1.89,
plus wrap some long lines from that revision. While here, wrap some other long lines.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_input.c22
-rw-r--r--sys/netinet/tcp_reass.c22
2 files changed, 26 insertions, 18 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 94813ea..c371e77 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -404,15 +404,16 @@ findpcb:
if(tiflags & TH_SYN)
log(LOG_INFO,
"Connection attempt to TCP %s:%d from %s:%d\n",
- buf, ntohs(ti->ti_dport), inet_ntoa(ti->ti_src),
+ buf, ntohs(ti->ti_dport),
+ inet_ntoa(ti->ti_src),
ntohs(ti->ti_sport));
- break;
+ break;
case 2:
log(LOG_INFO,
"Connection attempt to TCP %s:%d from %s:%d flags:0x%x\n",
buf, ntohs(ti->ti_dport), inet_ntoa(ti->ti_src),
ntohs(ti->ti_sport), tiflags);
- break;
+ break;
default:
break;
}
@@ -498,8 +499,8 @@ findpcb:
inp->inp_lport = ti->ti_dport;
if (in_pcbinshash(inp) != 0) {
/*
- * Undo the assignments above if we failed to put
- * the PCB on the hash lists.
+ * Undo the assignments above if we failed to
+ * put the PCB on the hash lists.
*/
inp->inp_laddr.s_addr = INADDR_ANY;
inp->inp_lport = 0;
@@ -512,7 +513,8 @@ findpcb:
/* Compute proper scaling value from buffer space */
while (tp->request_r_scale < TCP_MAX_WINSHIFT &&
- TCP_MAXWIN << tp->request_r_scale < so->so_rcv.sb_hiwat)
+ TCP_MAXWIN << tp->request_r_scale <
+ so->so_rcv.sb_hiwat)
tp->request_r_scale++;
}
}
@@ -767,7 +769,8 @@ findpcb:
* segment. Otherwise must send ACK now in case
* the other side is slow starting.
*/
- if (tcp_delack_enabled && ((tiflags & TH_FIN) || (ti->ti_len != 0 &&
+ if (tcp_delack_enabled && ((tiflags & TH_FIN) ||
+ (ti->ti_len != 0 &&
in_localaddr(inp->inp_faddr))))
tp->t_flags |= (TF_DELACK | TF_NEEDSYN);
else
@@ -943,7 +946,8 @@ findpcb:
tp->t_flags &= ~TF_NEEDFIN;
} else {
tp->t_state = TCPS_ESTABLISHED;
- tp->t_timer[TCPT_KEEP] = tcp_keepidle;
+ tp->t_timer[TCPT_KEEP] =
+ tcp_keepidle;
}
tp->t_flags |= TF_NEEDSYN;
} else
@@ -1494,7 +1498,7 @@ process_ACK:
if (cw > tp->snd_ssthresh)
incr = incr * incr / cw;
- tp->snd_cwnd = min(cw + incr, TCP_MAXWIN<<tp->snd_scale);
+ tp->snd_cwnd = min(cw + incr, TCP_MAXWIN << tp->snd_scale);
}
if (acked > so->so_snd.sb_cc) {
tp->snd_wnd -= so->so_snd.sb_cc;
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 94813ea..c371e77 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -404,15 +404,16 @@ findpcb:
if(tiflags & TH_SYN)
log(LOG_INFO,
"Connection attempt to TCP %s:%d from %s:%d\n",
- buf, ntohs(ti->ti_dport), inet_ntoa(ti->ti_src),
+ buf, ntohs(ti->ti_dport),
+ inet_ntoa(ti->ti_src),
ntohs(ti->ti_sport));
- break;
+ break;
case 2:
log(LOG_INFO,
"Connection attempt to TCP %s:%d from %s:%d flags:0x%x\n",
buf, ntohs(ti->ti_dport), inet_ntoa(ti->ti_src),
ntohs(ti->ti_sport), tiflags);
- break;
+ break;
default:
break;
}
@@ -498,8 +499,8 @@ findpcb:
inp->inp_lport = ti->ti_dport;
if (in_pcbinshash(inp) != 0) {
/*
- * Undo the assignments above if we failed to put
- * the PCB on the hash lists.
+ * Undo the assignments above if we failed to
+ * put the PCB on the hash lists.
*/
inp->inp_laddr.s_addr = INADDR_ANY;
inp->inp_lport = 0;
@@ -512,7 +513,8 @@ findpcb:
/* Compute proper scaling value from buffer space */
while (tp->request_r_scale < TCP_MAX_WINSHIFT &&
- TCP_MAXWIN << tp->request_r_scale < so->so_rcv.sb_hiwat)
+ TCP_MAXWIN << tp->request_r_scale <
+ so->so_rcv.sb_hiwat)
tp->request_r_scale++;
}
}
@@ -767,7 +769,8 @@ findpcb:
* segment. Otherwise must send ACK now in case
* the other side is slow starting.
*/
- if (tcp_delack_enabled && ((tiflags & TH_FIN) || (ti->ti_len != 0 &&
+ if (tcp_delack_enabled && ((tiflags & TH_FIN) ||
+ (ti->ti_len != 0 &&
in_localaddr(inp->inp_faddr))))
tp->t_flags |= (TF_DELACK | TF_NEEDSYN);
else
@@ -943,7 +946,8 @@ findpcb:
tp->t_flags &= ~TF_NEEDFIN;
} else {
tp->t_state = TCPS_ESTABLISHED;
- tp->t_timer[TCPT_KEEP] = tcp_keepidle;
+ tp->t_timer[TCPT_KEEP] =
+ tcp_keepidle;
}
tp->t_flags |= TF_NEEDSYN;
} else
@@ -1494,7 +1498,7 @@ process_ACK:
if (cw > tp->snd_ssthresh)
incr = incr * incr / cw;
- tp->snd_cwnd = min(cw + incr, TCP_MAXWIN<<tp->snd_scale);
+ tp->snd_cwnd = min(cw + incr, TCP_MAXWIN << tp->snd_scale);
}
if (acked > so->so_snd.sb_cc) {
tp->snd_wnd -= so->so_snd.sb_cc;
OpenPOWER on IntegriCloud