diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1999-08-29 21:59:03 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1999-08-29 21:59:03 +0000 |
commit | 5a8c77a83ce8b96c62af13804df1c7637dadaf5e (patch) | |
tree | 37a5675f7e008ecda8b77cf3160728f05d04f456 | |
parent | 545a1c84b2be87d6d9a39326f4f61b1a10d3dc29 (diff) | |
download | src-5a8c77a83ce8b96c62af13804df1c7637dadaf5e.tar.gz src-5a8c77a83ce8b96c62af13804df1c7637dadaf5e.zip |
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.
Notes
Notes:
svn path=/head/; revision=50596
-rw-r--r-- | sys/netinet/tcp_input.c | 22 | ||||
-rw-r--r-- | sys/netinet/tcp_reass.c | 22 |
2 files changed, 26 insertions, 18 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 94813ea6914f..c371e778d124 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 94813ea6914f..c371e778d124 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; |