mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 23:56:02 +08:00
Update to FreeBSD head 2018-06-01
Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9. Update #3472.
This commit is contained in:
@@ -208,7 +208,7 @@ tcp_output(struct tcpcb *tp)
|
||||
#if defined(IPSEC) || defined(IPSEC_SUPPORT)
|
||||
unsigned ipsec_optlen = 0;
|
||||
#endif
|
||||
int idle, sendalot;
|
||||
int idle, sendalot, curticks;
|
||||
int sack_rxmit, sack_bytes_rxmt;
|
||||
struct sackhole *p;
|
||||
int tso, mtu;
|
||||
@@ -810,9 +810,12 @@ send:
|
||||
/* Timestamps. */
|
||||
if ((tp->t_flags & TF_RCVD_TSTMP) ||
|
||||
((flags & TH_SYN) && (tp->t_flags & TF_REQ_TSTMP))) {
|
||||
to.to_tsval = tcp_ts_getticks() + tp->ts_offset;
|
||||
curticks = tcp_ts_getticks();
|
||||
to.to_tsval = curticks + tp->ts_offset;
|
||||
to.to_tsecr = tp->ts_recent;
|
||||
to.to_flags |= TOF_TS;
|
||||
if (tp->t_rxtshift == 1)
|
||||
tp->t_badrxtwin = curticks;
|
||||
}
|
||||
|
||||
/* Set receive buffer autosizing timestamp. */
|
||||
@@ -1313,10 +1316,6 @@ send:
|
||||
}
|
||||
#endif
|
||||
|
||||
/* We're getting ready to send; log now. */
|
||||
TCP_LOG_EVENT(tp, th, &so->so_rcv, &so->so_snd, TCP_LOG_OUT, ERRNO_UNK,
|
||||
len, NULL, false);
|
||||
|
||||
/*
|
||||
* Enable TSO and specify the size of the segments.
|
||||
* The TCP pseudo header checksum is always provided.
|
||||
@@ -1365,6 +1364,10 @@ send:
|
||||
#endif /* TCPDEBUG */
|
||||
TCP_PROBE3(debug__output, tp, th, m);
|
||||
|
||||
/* We're getting ready to send; log now. */
|
||||
TCP_LOG_EVENT(tp, th, &so->so_rcv, &so->so_snd, TCP_LOG_OUT, ERRNO_UNK,
|
||||
len, NULL, false);
|
||||
|
||||
/*
|
||||
* Fill in IP length and desired time to live and
|
||||
* send to IP level. There should be a better way
|
||||
@@ -1588,8 +1591,6 @@ timer:
|
||||
SOCKBUF_UNLOCK_ASSERT(&so->so_snd); /* Check gotos. */
|
||||
switch (error) {
|
||||
case EACCES:
|
||||
tp->t_softerror = error;
|
||||
return (0);
|
||||
case EPERM:
|
||||
tp->t_softerror = error;
|
||||
return (error);
|
||||
|
Reference in New Issue
Block a user