/external/qemu/slirp/ |
D | sbuf.c | 33 if(num > sb->sb_cc) in sbdrop() 34 num = sb->sb_cc; in sbdrop() 35 sb->sb_cc -= num; in sbdrop() 49 sb->sb_cc = 0; in sbreserve() 57 sb->sb_cc = 0; in sbreserve() 103 if (!so->so_rcv.sb_cc) in sbappend() 157 sb->sb_cc += n; in sbappendsb() 178 if (len > sb->sb_cc) len = sb->sb_cc; in sbcopy()
|
D | sbuf.h | 11 #define sbflush(sb) sbdrop((sb),(sb)->sb_cc) 12 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) 15 u_int sb_cc; /* actual chars in buffer */ member
|
D | tcp_subr.c | 657 so_rcv->sb_cc = snprintf(so_rcv->sb_data, in tcp_emu() 661 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; in tcp_emu() 687 so_snd->sb_cc += 18; in tcp_emu() 747 so_snd->sb_cc++; in tcp_emu() 771 so_snd->sb_cc += 18; in tcp_emu() 799 so_snd->sb_cc += 18; in tcp_emu() 866 so_snd->sb_cc++; in tcp_emu() 898 if (so_snd->sb_cc == 0) in tcp_emu() 921 while (num < so->so_rcv.sb_cc) { in tcp_emu() 946 so_snd->sb_cc += n; in tcp_emu() [all …]
|
D | socket.c | 92 int len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 98 len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 208 sb->sb_cc += nn; in soread() 244 sb->sb_cc += size; in soreadbuf() 281 tp->snd_up = tp->snd_una + so->so_snd.sb_cc; in sorecvoob() 301 DEBUG_ARG("sb->sb_cc = %d", sb->sb_cc); in sosendoob() 337 sb->sb_cc -= n; in sosendoob() 354 int len = sb->sb_cc; in sowrite() 362 if (sb->sb_cc == 0) in sowrite() 371 len = sb->sb_cc; in sowrite() [all …]
|
D | tcp_output.c | 128 if (off < so->so_snd.sb_cc) 137 len = min(so->so_snd.sb_cc, win) - off; 161 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc)) 180 len + off >= so->so_snd.sb_cc) 252 if (so->so_snd.sb_cc && tp->t_timer[TCPT_REXMT] == 0 && 376 if (off + len == so->so_snd.sb_cc)
|
D | debug.c | 318 so->so_rcv.sb_cc, so->so_snd.sb_cc); in sockstats() 332 so->so_rcv.sb_cc, so->so_snd.sb_cc); in sockstats()
|
D | slirp.c | 305 if (CONN_CANFSEND(so) && so->so_rcv.sb_cc) { in slirp_select_fill() 314 if (CONN_CANFRCV(so) && (so->so_snd.sb_cc < (so->so_snd.sb_datalen/2))) { in slirp_select_fill() 845 if (!CONN_CANFRCV(so) || so->so_snd.sb_cc >= (so->so_snd.sb_datalen/2)) in slirp_socket_can_recv() 917 qemu_put_be32(f, sbuf->sb_cc); in slirp_sbuf_save() 1009 uint32_t off, sb_cc, sb_datalen; in slirp_sbuf_load() local 1011 sb_cc = qemu_get_be32(f); in slirp_sbuf_load() 1019 sbuf->sb_cc = sb_cc; in slirp_sbuf_load()
|
D | tcp_input.c | 551 if (so->so_snd.sb_cc) in tcp_input() 1196 if (acked > so->so_snd.sb_cc) { in tcp_input() 1197 tp->snd_wnd -= so->so_snd.sb_cc; in tcp_input() 1198 sbdrop(&so->so_snd, (int )so->so_snd.sb_cc); in tcp_input() 1311 if (ti->ti_urp + so->so_rcv.sb_cc > so->so_rcv.sb_datalen) { in tcp_input() 1332 so->so_urgc = so->so_rcv.sb_cc + in tcp_input()
|
/external/qemu/slirp-android/ |
D | sbuf.c | 33 if(num > sb->sb_cc) in sbdrop() 34 num = sb->sb_cc; in sbdrop() 35 sb->sb_cc -= num; in sbdrop() 49 sb->sb_cc = 0; in sbreserve() 57 sb->sb_cc = 0; in sbreserve() 103 if (!so->so_rcv.sb_cc) in sbappend() 157 sb->sb_cc += n; in sbappendsb() 178 if (len > sb->sb_cc) len = sb->sb_cc; in sbcopy()
|
D | sbuf.h | 11 #define sbflush(sb) sbdrop((sb),(sb)->sb_cc) 12 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) 15 u_int sb_cc; /* actual chars in buffer */ member
|
D | socket.c | 100 int len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 106 len = sb->sb_datalen - sb->sb_cc; in sopreprbuf() 216 sb->sb_cc += nn; in soread() 252 sb->sb_cc += size; in soreadbuf() 289 tp->snd_up = tp->snd_una + so->so_snd.sb_cc; in sorecvoob() 309 DEBUG_ARG("sb->sb_cc = %d", sb->sb_cc); in sosendoob() 345 sb->sb_cc -= n; in sosendoob() 362 int len = sb->sb_cc; in sowrite() 370 if (sb->sb_cc == 0) in sowrite() 379 len = sb->sb_cc; in sowrite() [all …]
|
D | tcp_output.c | 128 if (off < so->so_snd.sb_cc) 137 len = min(so->so_snd.sb_cc, win) - off; 161 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc)) 180 len + off >= so->so_snd.sb_cc) 252 if (so->so_snd.sb_cc && tp->t_timer[TCPT_REXMT] == 0 && 376 if (off + len == so->so_snd.sb_cc)
|
D | tcp_subr.c | 808 so_rcv->sb_cc = snprintf(so_rcv->sb_data, in tcp_emu() 812 so_rcv->sb_wptr = so_rcv->sb_data + so_rcv->sb_cc; in tcp_emu() 1102 sb->sb_cc = sprintf(sb->sb_wptr,"Error: Permission denied.\r\n"); in tcp_ctl() 1103 sb->sb_wptr += sb->sb_cc; in tcp_ctl() 1135 sb->sb_cc = snprintf(sb->sb_wptr, sb->sb_datalen - (sb->sb_wptr - sb->sb_data), in tcp_ctl() 1137 sb->sb_wptr += sb->sb_cc; in tcp_ctl() 1152 sb->sb_cc = sprintf(sb->sb_wptr,"Sorry, already connected.\r\n"); in tcp_ctl() 1153 sb->sb_wptr += sb->sb_cc; in tcp_ctl() 1159 … sb->sb_cc = sprintf(sb->sb_wptr, "Slirp command-line ready (type \"help\" for help).\r\nSlirp> "); in tcp_ctl() 1160 sb->sb_wptr += sb->sb_cc; in tcp_ctl()
|
D | debug.c | 290 so->so_rcv.sb_cc, so->so_snd.sb_cc); 304 so->so_rcv.sb_cc, so->so_snd.sb_cc);
|
D | slirp.c | 371 if (CONN_CANFSEND(so) && so->so_rcv.sb_cc) { in slirp_select_fill() 380 if (CONN_CANFRCV(so) && (so->so_snd.sb_cc < (so->so_snd.sb_datalen/2))) { in slirp_select_fill() 1248 if (!CONN_CANFRCV(so) || so->so_snd.sb_cc >= (so->so_snd.sb_datalen/2)) in slirp_socket_can_recv() 1320 qemu_put_be32(f, sbuf->sb_cc); in slirp_sbuf_save() 1412 uint32_t off, sb_cc, sb_datalen; in slirp_sbuf_load() local 1414 sb_cc = qemu_get_be32(f); in slirp_sbuf_load() 1422 sbuf->sb_cc = sb_cc; in slirp_sbuf_load()
|
D | tcp_input.c | 556 if (so->so_snd.sb_cc) in tcp_input() 1202 if (acked > so->so_snd.sb_cc) { in tcp_input() 1203 tp->snd_wnd -= so->so_snd.sb_cc; in tcp_input() 1204 sbdrop(&so->so_snd, (int )so->so_snd.sb_cc); in tcp_input() 1317 if (ti->ti_urp + so->so_rcv.sb_cc > so->so_rcv.sb_datalen) { in tcp_input() 1338 so->so_urgc = so->so_rcv.sb_cc + in tcp_input()
|