mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
tcp: properly initialize LRD while accepting session in syncache
Inherit the setting from the listener socket in syncache_socket. MFC after: 2 weeks Reviewed By: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D42874 (cherry picked from commit f071abd92e726fc12e9256662e1f286f364252ee)
This commit is contained in:
parent
79ca908fde
commit
544bfa7cea
1 changed files with 2 additions and 1 deletions
|
|
@ -952,7 +952,8 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m)
|
|||
tp->rcv_adv += tp->rcv_wnd;
|
||||
tp->last_ack_sent = tp->rcv_nxt;
|
||||
|
||||
tp->t_flags = sototcpcb(lso)->t_flags & (TF_NOPUSH|TF_NODELAY);
|
||||
tp->t_flags = sototcpcb(lso)->t_flags &
|
||||
(TF_LRD|TF_NOPUSH|TF_NODELAY);
|
||||
if (sc->sc_flags & SCF_NOOPT)
|
||||
tp->t_flags |= TF_NOOPT;
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue