Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_input.c
Show First 20 Lines • Show All 1,480 Lines • ▼ Show 20 Lines | if (V_tcp_do_autorcvbuf && (so->so_rcv.sb_flags & SB_AUTOSIZE) && | ||||
TCP_PROBE6(receive__autoresize, NULL, tp, m, tp, th, newsize); | TCP_PROBE6(receive__autoresize, NULL, tp, m, tp, th, newsize); | ||||
/* Start over with next RTT. */ | /* Start over with next RTT. */ | ||||
tp->rfbuf_ts = 0; | tp->rfbuf_ts = 0; | ||||
tp->rfbuf_cnt = 0; | tp->rfbuf_cnt = 0; | ||||
} else { | } else { | ||||
tp->rfbuf_cnt += tlen; /* add up */ | tp->rfbuf_cnt += tlen; /* add up */ | ||||
} | } | ||||
return (newsize); | return (newsize); | ||||
} | } | ||||
void | void | ||||
tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so, | tcp_do_segment(struct mbuf *m, struct tcphdr *th, struct socket *so, | ||||
struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos) | struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos) | ||||
{ | { | ||||
int thflags, acked, ourfinisacked, needoutput = 0, sack_changed; | int thflags, acked, ourfinisacked, needoutput = 0, sack_changed; | ||||
▲ Show 20 Lines • Show All 2,370 Lines • Show Last 20 Lines |