diff options
| author | Jonathan Lemon <jlemon@FreeBSD.org> | 2003-02-19 22:32:43 +0000 |
|---|---|---|
| committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2003-02-19 22:32:43 +0000 |
| commit | 340c35de6a249d9dd8b4f72f7c75c851a158db09 (patch) | |
| tree | 6317b858b0555a797efb2e5b5bd4c2eebbdc0d10 /sys/netinet/tcp_timer.c | |
| parent | 7990938421f8dfe53c82aaea0a6c8a9e0b79f4d4 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_timer.c')
| -rw-r--r-- | sys/netinet/tcp_timer.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 8a685797de3e..16955d62100a 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -252,6 +252,33 @@ tcp_timer_2msl(xtp) } void +tcp_timer_2msl_tw(xtw) + void *xtw; +{ + struct tcptw *tw = xtw; + int s; + + s = splnet(); + INP_INFO_WLOCK(&tcbinfo); + if (tw->tw_inpcb == NULL) { + INP_INFO_WUNLOCK(&tcbinfo); + splx(s); + return; + } + INP_LOCK(tw->tw_inpcb); + if (callout_pending(tw->tt_2msl) || !callout_active(tw->tt_2msl)) { + INP_UNLOCK(tw->tw_inpcb); + INP_INFO_WUNLOCK(&tcbinfo); + splx(s); + return; + } + callout_deactivate(tw->tt_2msl); + tcp_twclose(tw); + INP_INFO_WUNLOCK(&tcbinfo); + splx(s); +} + +void tcp_timer_keep(xtp) void *xtp; { |
