/external/qemu/slirp/ |
sbuf.c | 48 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)realloc(sb->sb_data, size); 50 if (sb->sb_wptr) 56 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)malloc(size); 58 if (sb->sb_wptr) 138 if (sb->sb_wptr < sb->sb_rptr) { 139 n = sb->sb_rptr - sb->sb_wptr; 141 memcpy(sb->sb_wptr, m->m_data, n); 144 n = sb->sb_data + sb->sb_datalen - sb->sb_wptr; 146 memcpy(sb->sb_wptr, m->m_data, n); 158 sb->sb_wptr += n [all...] |
sbuf.h | 17 char *sb_wptr; /* write pointer. points to where the next member in struct:sbuf
|
tcp_subr.c | 636 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); 637 so_rcv->sb_wptr += m->m_len; 661 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; 684 (m->m_len + so_rcv->sb_wptr) > (so_rcv->sb_data + so_rcv->sb_datalen)) { 685 memcpy(so_snd->sb_wptr, "Permission denied\n", 18); 686 so_snd->sb_wptr += 18; 694 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); 695 so_rcv->sb_wptr += m->m_len; 707 while (ptr < so_rcv->sb_wptr) { 714 i2 = so_rcv->sb_wptr - ptr [all...] |
socket.c | 103 iov[0].iov_base = sb->sb_wptr; 106 if (sb->sb_wptr < sb->sb_rptr) { 107 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; 115 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; 209 sb->sb_wptr += nn; 210 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) 211 sb->sb_wptr -= sb->sb_datalen; 245 sb->sb_wptr += size; 246 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) 247 sb->sb_wptr -= sb->sb_datalen [all...] |
misc.c | 586 if ((lprint_ptr - lprint_sb->sb_wptr) >= 588 int deltaw = lprint_sb->sb_wptr - lprint_sb->sb_data; 596 lprint_sb->sb_wptr = lprint_sb->sb_data + deltaw;
|
slirp.c | 919 off = (uint32_t)(sbuf->sb_wptr - sbuf->sb_data); 1022 sbuf->sb_wptr = sbuf->sb_data + off;
|
/external/qemu/slirp-android/ |
sbuf.c | 48 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)realloc(sb->sb_data, size); 50 if (sb->sb_wptr) 56 sb->sb_wptr = sb->sb_rptr = sb->sb_data = (char *)malloc(size); 58 if (sb->sb_wptr) 138 if (sb->sb_wptr < sb->sb_rptr) { 139 n = sb->sb_rptr - sb->sb_wptr; 141 memcpy(sb->sb_wptr, m->m_data, n); 144 n = sb->sb_data + sb->sb_datalen - sb->sb_wptr; 146 memcpy(sb->sb_wptr, m->m_data, n); 158 sb->sb_wptr += n [all...] |
sbuf.h | 17 char *sb_wptr; /* write pointer. points to where the next member in struct:sbuf
|
socket.c | 111 iov[0].iov_base = sb->sb_wptr; 114 if (sb->sb_wptr < sb->sb_rptr) { 115 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; 123 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; 217 sb->sb_wptr += nn; 218 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) 219 sb->sb_wptr -= sb->sb_datalen; 253 sb->sb_wptr += size; 254 if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen)) 255 sb->sb_wptr -= sb->sb_datalen [all...] |
tcp_subr.c | 790 memcpy(so_rcv->sb_wptr, m->m_data, m->m_len); 791 so_rcv->sb_wptr += m->m_len; 812 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; 1102 sb->sb_cc = sprintf(sb->sb_wptr,"Error: Permission denied.\r\n"); 1103 sb->sb_wptr += sb->sb_cc; 1135 sb->sb_cc = snprintf(sb->sb_wptr, sb->sb_datalen - (sb->sb_wptr - sb->sb_data), 1137 sb->sb_wptr += sb->sb_cc; 1152 sb->sb_cc = sprintf(sb->sb_wptr,"Sorry, already connected.\r\n"); 1153 sb->sb_wptr += sb->sb_cc [all...] |
misc.c | 550 if ((lprint_ptr - lprint_sb->sb_wptr) >= 552 int deltaw = lprint_sb->sb_wptr - lprint_sb->sb_data; 560 lprint_sb->sb_wptr = lprint_sb->sb_data + deltaw;
|
slirp.c | [all...] |