diff options
author | andre <andre@FreeBSD.org> | 2007-07-25 18:48:24 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2007-07-25 18:48:24 +0000 |
commit | 90c73e9aec2c2c98fc387d706b7afba9348b69e4 (patch) | |
tree | 99b22ff6ec59556ee2a411fb2ef0b43bb041c6c3 /sys/netinet/tcp_input.c | |
parent | e447c8529bf9e86d445234cd7ac37f314819478f (diff) | |
download | FreeBSD-src-90c73e9aec2c2c98fc387d706b7afba9348b69e4.zip FreeBSD-src-90c73e9aec2c2c98fc387d706b7afba9348b69e4.tar.gz |
Fix comments in tcp_do_segment().
Approved by: re (kensmith)
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 4d5d256..e9ae0be 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1100,10 +1100,6 @@ tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so, else if (!tcp_timer_active(tp, TT_PERSIST)) tcp_timer_activate(tp, TT_REXMT, tp->t_rxtcur); - /* - * NB: sowwakeup_locked() does an - * implicit unlock. - */ sowwakeup(so); if (so->so_snd.sb_cc) (void) tcp_output(tp); @@ -1462,6 +1458,7 @@ tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so, tcpstat.tcps_badrst++; goto drop; } + /* FALLTHROUGH */ case TCPS_FIN_WAIT_1: case TCPS_FIN_WAIT_2: case TCPS_CLOSE_WAIT: @@ -2034,6 +2031,7 @@ process_ACK: tp->snd_wnd -= acked; ourfinisacked = 0; } + /* NB: sowwakeup_locked() does an implicit unlock. */ sowwakeup_locked(so); /* Detect una wraparound. */ if ((tcp_do_newreno || (tp->t_flags & TF_SACK_PERMIT)) && @@ -2307,7 +2305,7 @@ dodata: /* XXX */ */ case TCPS_SYN_RECEIVED: tp->t_starttime = ticks; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case TCPS_ESTABLISHED: tp->t_state = TCPS_CLOSE_WAIT; break; |