diff options
author | jlemon <jlemon@FreeBSD.org> | 2000-11-25 06:22:16 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2000-11-25 06:22:16 +0000 |
commit | 7f57729d27eabceea7b2d1da8e4daa1aff81d4b1 (patch) | |
tree | cc6169b9cadd74990e10fb85cf75f28ebdc92693 /sys/netinet | |
parent | 534ec06045a1b2160fd3a756ac756a510819841d (diff) | |
download | FreeBSD-src-7f57729d27eabceea7b2d1da8e4daa1aff81d4b1.zip FreeBSD-src-7f57729d27eabceea7b2d1da8e4daa1aff81d4b1.tar.gz |
Revert the last commit to the callout interface, and add a flag to
callout_init() indicating whether the callout is safe or not. Update
the callers of callout_init() to reflect the new interface.
Okayed by: Jake
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_subr.c | 10 | ||||
-rw-r--r-- | sys/netinet/tcp_timewait.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index c3616a5..64302c6 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -490,11 +490,11 @@ tcp_newtcpcb(inp) tcp_mssdflt; /* Set up our timeouts. */ - callout_init(tp->tt_rexmt = &it->inp_tp_rexmt); - callout_init(tp->tt_persist = &it->inp_tp_persist); - callout_init(tp->tt_keep = &it->inp_tp_keep); - callout_init(tp->tt_2msl = &it->inp_tp_2msl); - callout_init(tp->tt_delack = &it->inp_tp_delack); + callout_init(tp->tt_rexmt = &it->inp_tp_rexmt, 0); + callout_init(tp->tt_persist = &it->inp_tp_persist, 0); + callout_init(tp->tt_keep = &it->inp_tp_keep, 0); + callout_init(tp->tt_2msl = &it->inp_tp_2msl, 0); + callout_init(tp->tt_delack = &it->inp_tp_delack, 0); if (tcp_do_rfc1323) tp->t_flags = (TF_REQ_SCALE|TF_REQ_TSTMP); diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index c3616a5..64302c6 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -490,11 +490,11 @@ tcp_newtcpcb(inp) tcp_mssdflt; /* Set up our timeouts. */ - callout_init(tp->tt_rexmt = &it->inp_tp_rexmt); - callout_init(tp->tt_persist = &it->inp_tp_persist); - callout_init(tp->tt_keep = &it->inp_tp_keep); - callout_init(tp->tt_2msl = &it->inp_tp_2msl); - callout_init(tp->tt_delack = &it->inp_tp_delack); + callout_init(tp->tt_rexmt = &it->inp_tp_rexmt, 0); + callout_init(tp->tt_persist = &it->inp_tp_persist, 0); + callout_init(tp->tt_keep = &it->inp_tp_keep, 0); + callout_init(tp->tt_2msl = &it->inp_tp_2msl, 0); + callout_init(tp->tt_delack = &it->inp_tp_delack, 0); if (tcp_do_rfc1323) tp->t_flags = (TF_REQ_SCALE|TF_REQ_TSTMP); |