Lines Matching defs:so
268 struct socket *so = tp->t_inpcb->inp_socket;
299 u_int16_t socket_id = get_socket_id(so);
300 int so_options = so->so_options;
368 somultipages(so, FALSE);
386 soevent(so,
414 if (so->so_flags & SOF_NOADDRAVAIL) {
435 somultipages(so, (ifp->if_hwassist & IFNET_MULTIPAGES));
569 if (off < so->so_snd.sb_cc)
597 len = min(so->so_snd.sb_cc, sendwin) - off;
606 len = min(so->so_snd.sb_cc, tp->snd_wnd)
645 error = tcp_ip_output(so, tp, packetlist,
714 * 2. send buffer is filled to 7/8th with data (so we actually
722 (so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE &&
723 tcp_cansbgrow(&so->so_snd)) {
724 if ((tp->snd_wnd / 4 * 5) >= so->so_snd.sb_hiwat &&
725 so->so_snd.sb_cc >= (so->so_snd.sb_hiwat / 8 * 7) &&
726 sendwin >= (so->so_snd.sb_cc -
737 if (sbreserve(&so->so_snd,
738 min(so->so_snd.sb_hiwat + tcp_autosndbuf_inc,
740 so->so_snd.sb_idealsize = so->so_snd.sb_hiwat;
743 so->so_snd.sb_idealsize =
744 max(tcp_sendspace, so->so_snd.sb_hiwat -
746 so->so_snd.sb_flags |= SB_TRIM;
801 if (SEQ_LT(p->rxmit + len, tp->snd_una + so->so_snd.sb_cc))
804 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc))
850 len + off >= so->so_snd.sb_cc) {
905 if (4 * adv >= (int32_t) so->so_rcv.sb_hiwat)
922 * and we have not yet done so, then we need to send.
961 if (so->so_snd.sb_cc && tp->t_timer[TCPT_REXMT] == 0 &&
979 error = tcp_ip_output(so, tp, packetlist, packchain_listadd,
1141 if (tp->rfbuf_ts == 0 && (so->so_rcv.sb_flags & SB_AUTOSIZE))
1156 * already done so. This is only for active connect,
1194 * First we need to pad options so that the
1290 (so->so_snd.sb_cc - (tp->snd_max - tp->snd_una)) >=
1292 tp->t_bwmeas->bw_size = min((so->so_snd.sb_cc - (tp->snd_max - tp->snd_una)),
1371 if (so->so_snd.sb_mb == NULL || off < 0) {
1376 m_copydata(so->so_snd.sb_mb, off, (int) len,
1381 m->m_next = m_copy(so->so_snd.sb_mb, off, (int) len);
1398 if (m_head != so->so_snd.sb_mb || sack_rxmit || last_off != off)
1401 m_head = so->so_snd.sb_mb;
1413 if ((m = m_copym_with_hdrs(so->so_snd.sb_mb, off, len, M_DONTWAIT, &m_lastm, &m_off)) == NULL) {
1427 if (off + len == so->so_snd.sb_cc)
1500 * right edge of the window, so use snd_nxt in that
1526 if (recwin < (int32_t)(so->so_rcv.sb_hiwat / 4) && recwin < (int)tp->t_maxseg)
1536 if (tcp_recv_bg == 1 || IS_TCP_RECV_BG(so)) {
1572 * so that it doesn't drift into the send window on sequence
1758 ipsec_setsocket(m, so);
1793 set_packet_service_class(m, so, MBUF_SC_UNSPEC, svc_flags);
1856 error = tcp_ip_output(so, tp, packetlist,
1895 * Assume that the packets were lost, so back out the
1940 * initiate retransmission, so it is important to
1941 * not do so here.
1981 tcp_ip_output(struct socket *so, struct tcpcb *tp, struct mbuf *pkt,
2066 if (tcp_output_unlocked && !so->so_upcallusecount &&
2071 socket_unlock(so, 0);
2098 * list count to 0 so that IP takes the right path;
2133 socket_lock(so, 0);
2249 struct socket *so = tp->t_inpcb->inp_socket;
2262 so_tc_update_stats(m, so, m_get_service_class(m));
2293 so_tc_update_stats(m, so, m_get_service_class(m));