• Home
  • Raw
  • Download

Lines Matching refs:so_rcv

118 		win = sbspace(&tp->t_socket->so_rcv);  in tcp_respond()
282 sbfree(&so->so_rcv); in tcp_close()
634 struct sbuf *so_rcv = &so->so_rcv; in tcp_emu() local
636 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); in tcp_emu()
637 so_rcv->sb_wptr += m->m_len; in tcp_emu()
638 so_rcv->sb_rptr += m->m_len; in tcp_emu()
641 if (sscanf(so_rcv->sb_data, "%u%*[ ,]%u", &n1, &n2) == 2) { in tcp_emu()
657 so_rcv->sb_cc = snprintf(so_rcv->sb_data, in tcp_emu()
658 so_rcv->sb_datalen, in tcp_emu()
660 so_rcv->sb_rptr = so_rcv->sb_data; in tcp_emu()
661 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; in tcp_emu()
680 struct sbuf *so_rcv = &so->so_rcv; in tcp_emu()
684 (m->m_len + so_rcv->sb_wptr) > (so_rcv->sb_data + so_rcv->sb_datalen)) { in tcp_emu()
694 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); in tcp_emu()
695 so_rcv->sb_wptr += m->m_len; in tcp_emu()
696 so_rcv->sb_rptr += m->m_len; in tcp_emu()
704 ptr = so_rcv->sb_data; in tcp_emu()
707 while (ptr < so_rcv->sb_wptr) { in tcp_emu()
714 i2 = so_rcv->sb_wptr - ptr; in tcp_emu()
764 struct sbuf *so_rcv = &so->so_rcv; in tcp_emu()
768 (m->m_len + so_rcv->sb_wptr) > (so_rcv->sb_data + so_rcv->sb_datalen)) { in tcp_emu()
778 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); in tcp_emu()
779 so_rcv->sb_wptr += m->m_len; in tcp_emu()
780 so_rcv->sb_rptr += m->m_len; in tcp_emu()
788 ptr = so_rcv->sb_data; in tcp_emu()
845 while (ptr < so_rcv->sb_wptr) { in tcp_emu()
875 struct sbuf *so_rcv = &so->so_rcv; in tcp_emu()
895 sbappendsb(so_rcv, m); in tcp_emu()
921 while (num < so->so_rcv.sb_cc) { in tcp_emu()
922 if (*(so->so_rcv.sb_rptr + num) == '\n' || in tcp_emu()
923 *(so->so_rcv.sb_rptr + num) == '\r') { in tcp_emu()
926 *(so_rcv->sb_rptr + num) = 0; in tcp_emu()
929 if (sscanf(so_rcv->sb_rptr, "pass %256s", buff) == 1) { in tcp_emu()
942 n = do_config(so_rcv->sb_rptr, so, PRN_SPRINTF); in tcp_emu()
954 so_rcv->sb_cc = 0; in tcp_emu()
955 so_rcv->sb_wptr = so_rcv->sb_rptr = so_rcv->sb_data; in tcp_emu()