Home
last modified time | relevance | path

Searched refs:sb_hiwat (Results 1 – 9 of 9) sorted by relevance

/openbsd/sys/netinet/
H A Dtcp_usrreq.c295 ti->tcpi_so_rcv_sb_hiwat = so->so_rcv.sb_hiwat; in tcp_fill_info()
299 ti->tcpi_so_snd_sb_hiwat = so->so_snd.sb_hiwat; in tcp_fill_info()
465 if (so->so_snd.sb_hiwat == 0 || so->so_rcv.sb_hiwat == 0 || in tcp_attach()
891 ub->st_blksize = so->so_snd.sb_hiwat; in tcp_sense()
1513 u_long nmax = so->so_snd.sb_hiwat; in tcp_update_sndspace()
1539 if (nmax != so->so_snd.sb_hiwat) in tcp_update_sndspace()
1553 u_long nmax = so->so_rcv.sb_hiwat; in tcp_update_rcvspace()
1564 if (tp->rfbuf_cnt > so->so_rcv.sb_hiwat / 8 * 7) in tcp_update_rcvspace()
1565 nmax = MIN(sb_max, so->so_rcv.sb_hiwat + in tcp_update_rcvspace()
1574 if (nmax == so->so_rcv.sb_hiwat) in tcp_update_rcvspace()
H A Dtcp_output.c350 txmaxseg = ulmin(so->so_snd.sb_hiwat / 2, tp->t_maxseg); in tcp_output()
423 if (2 * adv >= (long) so->so_rcv.sb_hiwat) in tcp_output()
857 if (win < (long)(so->so_rcv.sb_hiwat / 4) && win < (long)tp->t_maxseg) in tcp_output()
H A Dtcp_input.c1972 len = so->so_rcv.sb_hiwat - (tp->rcv_adv - tp->rcv_nxt); in tcp_input()
2987 bufsize = so->so_snd.sb_hiwat; in tcp_mss_update()
2999 bufsize = so->so_rcv.sb_hiwat; in tcp_mss_update()
/openbsd/sys/kern/
H A Duipc_socket2.c230 if (soreserve(so, head->so_snd.sb_hiwat, head->so_rcv.sb_hiwat)) in sonewconn()
634 if (so->so_snd.sb_lowat > so->so_snd.sb_hiwat) in soreserve()
635 so->so_snd.sb_lowat = so->so_snd.sb_hiwat; in soreserve()
665 sb->sb_hiwat = cc; in sbreserve()
667 if (sb->sb_lowat > sb->sb_hiwat) in sbreserve()
668 sb->sb_lowat = sb->sb_hiwat; in sbreserve()
711 sb->sb_hiwat = sb->sb_mbmax = 0;
H A Duipc_socket.c705 if (atomic && resid > so->so_snd.sb_hiwat) in sosend()
708 if (clen > so->so_snd.sb_hiwat || in sosend()
709 (atomic && resid > so->so_snd.sb_hiwat - clen)) in sosend()
970 ((flags & MSG_WAITALL) && uio->uio_resid <= so->so_rcv.sb_hiwat)) && in soreceive()
1748 if (sosp->so_snd.sb_hiwat < m->m_pkthdr.len) { in somove()
2118 sb->sb_lowat = (cnt > sb->sb_hiwat) ? in sosetopt()
2119 sb->sb_hiwat : cnt; in sosetopt()
2265 *mtod(m, int *) = so->so_snd.sb_hiwat; in sogetopt()
2269 *mtod(m, int *) = so->so_rcv.sb_hiwat; in sogetopt()
2623 (*pr)("\tsb_hiwat: %lu\n", sb->sb_hiwat); in sobuf_print()
H A Duipc_usrreq.c266 if (so->so_snd.sb_hiwat == 0 || so->so_rcv.sb_hiwat == 0) { in uipc_attach()
667 sb->st_blksize = so->so_snd.sb_hiwat; in uipc_sense()
/openbsd/sys/sys/
H A Dsocketvar.h93 u_long sb_hiwat; /* [m] max actual char count */ member
280 return lmin(sb->sb_hiwat - sb->sb_cc, sb->sb_mbmax - sb->sb_mbcnt); in sbspace_locked()
/openbsd/usr.bin/netstat/
H A Dinet.c1381 p("%lu", sb_hiwat, ", "); in sockbuf_dump()
/openbsd/sys/net/
H A Drtsock.c319 ((sbspace_locked(so, &so->so_rcv) == so->so_rcv.sb_hiwat))) in route_rcvd()