/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-udp/ |
D | minimal-raw-adopt-udp.c | 36 static uint8_t sendbuf[4096]; variable 67 if (sendlen > sizeof(sendbuf)) in callback_raw_test() 68 sendlen = sizeof(sendbuf); in callback_raw_test() 69 memcpy(sendbuf, in, sendlen); in callback_raw_test() 112 sendbuf, in callback_raw_test()
|
/external/libpcap/rpcapd/ |
D | daemon.c | 1226 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_auth_req() local 1364 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in daemon_msg_auth_req() 1367 authreply = (struct rpcap_authreply *) &sendbuf[sendbufidx]; in daemon_msg_auth_req() 1386 if (sock_send(pars->sockctrl, pars->ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_auth_req() 1608 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_findallif_req() local 1705 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_findallif_req() 1764 if (sock_bufferize(&findalldevs_if, sizeof(struct rpcap_findalldevs_if), sendbuf, in daemon_msg_findallif_req() 1769 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req() 1774 if (sock_bufferize(d->description, ldescr, sendbuf, &sendbufidx, in daemon_msg_findallif_req() 1793 sockaddr = (struct rpcap_sockaddr *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req() [all …]
|
/external/libpcap/ |
D | rpcap-protocol.c | 85 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in rpcap_senderror() local 94 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, RPCAP_MSG_ERROR, errcode, length); in rpcap_senderror() 100 if (sock_bufferize(error, length, sendbuf, &sendbufidx, in rpcap_senderror() 104 if (sock_send(sock, ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0) in rpcap_senderror()
|
D | pcap-rpcap.c | 168 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog… 1086 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_startcapture_remote() local 1234 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_startcapture_remote() 1239 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote() 1270 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) in pcap_startcapture_remote() 1273 if (sock_send(pr->rmt_sockctrl, pr->ctrl_ssl, sendbuf, sendbufidx, fp->errbuf, in pcap_startcapture_remote() 1555 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter() argument 1571 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter() 1629 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_updatefilter_remote() local 1637 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_updatefilter_remote() [all …]
|
/external/ltp/testcases/kernel/syscalls/send/ |
D | send02.c | 27 static char sendbuf[SENDSIZE]; variable 71 memset(sendbuf, 0x42, SENDSIZE); in setup() 151 tc->send(sock, sendbuf, SENDSIZE, 0); in run() 157 tc->send(sock, sendbuf, SENDSIZE, MSG_MORE); in run() 163 tc->send(sock, sendbuf, 1, 0); in run()
|
/external/ipsec-tools/src/racoon/ |
D | isakmp_ident.c | 206 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); 209 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); 386 iph1->sendbuf = ident_ir2mx(iph1); 387 if (iph1->sendbuf == NULL) 391 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); 400 if (add_recvdpkt(iph1->remote, iph1->local, iph1->sendbuf, msg) == -1) { 631 iph1->sendbuf = ident_ir3mx(iph1); 632 if (iph1->sendbuf == NULL) 641 if (add_recvdpkt(iph1->remote, iph1->local, iph1->sendbuf, msg0) == -1) { 1059 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); [all …]
|
D | isakmp_base.c | 245 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); 249 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); 548 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); 551 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); 560 if (add_recvdpkt(iph1->remote, iph1->local, iph1->sendbuf, msg) == -1) { 1015 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); 1018 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); 1029 if (add_recvdpkt(iph1->remote, iph1->local, iph1->sendbuf, msg) == -1) { 1371 iph1->sendbuf = isakmp_plist_set_all(&plist, iph1); 1374 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); [all …]
|
D | handler.h | 147 vchar_t *sendbuf; /* buffer for re-sending */ member 265 vchar_t *sendbuf; /* buffer for re-sending */ member 340 vchar_t *sendbuf; /* buffer for the response */ member
|
D | isakmp_cfg.c | 1211 iph2->sendbuf = vmalloc(tlen); 1212 if (iph2->sendbuf == NULL) { 1219 isakmp = (struct isakmp *)iph2->sendbuf->v; 1245 isakmp_printpacket(iph2->sendbuf, iph1->local, iph1->remote, 1); 1249 plogdump(LLV_DEBUG, iph2->sendbuf->v, iph2->sendbuf->l); 1255 tmp = oakley_do_encrypt(iph2->ph1, iph2->sendbuf, 1257 VPTRINIT(iph2->sendbuf); 1260 iph2->sendbuf = tmp; 1264 if (isakmp_send(iph2->ph1, iph2->sendbuf) < 0) { 1265 VPTRINIT(iph2->sendbuf); [all …]
|
D | isakmp_agg.c | 285 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); 288 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); 737 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); 740 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 0); 744 if (isakmp_send(iph1, iph1->sendbuf) < 0) 748 if (add_recvdpkt(iph1->remote, iph1->local, iph1->sendbuf, msg) == -1) { 1257 iph1->sendbuf = isakmp_plist_set_all (&plist, iph1); 1260 isakmp_printpacket(iph1->sendbuf, iph1->local, iph1->remote, 1); 1269 if (add_recvdpkt(iph1->remote, iph1->local, iph1->sendbuf, msg) == -1) {
|
D | isakmp_quick.c | 282 iph2->sendbuf = quick_ir1mx(iph2, body, hash); 283 if (iph2->sendbuf == NULL) 615 iph2->sendbuf = oakley_do_encrypt(iph2->ph1, buf, iph2->ivm->ive, iph2->ivm->iv); 616 if (iph2->sendbuf == NULL) 627 if (isakmp_send(iph2->ph1, iph2->sendbuf) < 0) 633 iph2->sendbuf, msg0) == -1) { 1348 iph2->sendbuf = quick_ir1mx(iph2, body, hash); 1349 if (iph2->sendbuf == NULL) 1358 if (add_recvdpkt(iph2->ph1->remote, iph2->ph1->local, iph2->sendbuf, iph2->msg1) == -1) { 1574 iph2->sendbuf = oakley_do_encrypt(iph2->ph1, buf, iph2->ivm->ive, iph2->ivm->iv); [all …]
|
D | handler.c | 333 VPTRINIT(iph1->sendbuf); 602 VPTRINIT(iph2->sendbuf); 907 len = sendfromto(s, r->sendbuf->v, r->sendbuf->l, 971 new->sendbuf = vdup(sbuf); 972 if (new->sendbuf == NULL) { 998 if (r->sendbuf) 999 vfree(r->sendbuf);
|
D | isakmp_inf.c | 964 iph2->sendbuf = vmalloc(tlen); 965 if (iph2->sendbuf == NULL) { 972 isakmp = (struct isakmp *)iph2->sendbuf->v; 998 isakmp_printpacket(iph2->sendbuf, iph1->local, iph1->remote, 1); 1005 tmp = oakley_do_encrypt(iph2->ph1, iph2->sendbuf, iph2->ivm->ive, 1007 VPTRINIT(iph2->sendbuf); 1010 iph2->sendbuf = tmp; 1014 if (isakmp_send(iph2->ph1, iph2->sendbuf) < 0) { 1015 VPTRINIT(iph2->sendbuf); 1029 VPTRINIT(iph2->sendbuf);
|
D | racoonctl.c | 336 vchar_t *sendbuf; in evt_poll() local 338 if ((sendbuf = f_getevt(0, NULL)) == NULL) in evt_poll() 346 if (com_send(sendbuf) != 0) in evt_poll() 359 vfree(sendbuf); in evt_poll()
|
D | isakmp.c | 830 if (iph1->sendbuf == NULL) { 837 VPTRINIT(iph1->sendbuf); 993 if (iph2->sendbuf == NULL) { 998 VPTRINIT(iph2->sendbuf); 1906 if (isakmp_send(iph1, iph1->sendbuf) < 0){ 1965 if (isakmp_send(iph2->ph1, iph2->sendbuf) < 0){
|
/external/curl/lib/ |
D | pingpong.c | 154 Curl_dyn_init(&pp->sendbuf, DYN_PINGPPONG_CMD); in Curl_pp_setup() 190 Curl_dyn_reset(&pp->sendbuf); in Curl_pp_vsendf() 191 result = Curl_dyn_vaddf(&pp->sendbuf, fmt, args); in Curl_pp_vsendf() 196 result = Curl_dyn_addn(&pp->sendbuf, "\r\n", 2); in Curl_pp_vsendf() 200 write_len = Curl_dyn_len(&pp->sendbuf); in Curl_pp_vsendf() 201 s = Curl_dyn_ptr(&pp->sendbuf); in Curl_pp_vsendf() 492 Curl_dyn_free(&pp->sendbuf); in Curl_pp_disconnect()
|
D | pingpong.h | 66 struct dynbuf sendbuf; member
|
/external/openthread/third_party/tcplp/bsdtcp/ |
D | tcp_output.c | 253 if (off < lbuf_used_space(&tp->sendbuf)) in tcp_output() 283 len = ((long)ulmin(lbuf_used_space(&tp->sendbuf), sendwin) - in tcp_output() 297 len = ((long)ulmin(lbuf_used_space(&tp->sendbuf), tp->snd_wnd) - in tcp_output() 362 (off < (int) lbuf_used_space(&tp->sendbuf))) { in tcp_output() 432 if (SEQ_LT(p->rxmit + len, tp->snd_una + lbuf_used_space(&tp->sendbuf))) in tcp_output() 440 lbuf_used_space(&tp->sendbuf))) in tcp_output() 478 len + off >= lbuf_used_space(&tp->sendbuf) && in tcp_output() 643 if (lbuf_used_space(&tp->sendbuf) && !tcp_timer_active(tp, TT_REXMT) && in tcp_output() 879 uint32_t used_space = lbuf_used_space(&tp->sendbuf); in tcp_output() 899 int rv = lbuf_getrange(&tp->sendbuf, off, len, &start, &start_offset, &end, &end_offset); in tcp_output() [all …]
|
D | tcp_usrreq.c | 300 lbuf_extend(&tp->sendbuf, extendby); in tcp_usr_send() 305 lbuf_append(&tp->sendbuf, data); in tcp_usr_send()
|
D | tcp_input.c | 1187 uint32_t poppedbytes = lbuf_pop(&tp->sendbuf, acked, &sig->links_popped); in tcp_do_segment() 1239 if (lbuf_used_space(&tp->sendbuf)) in tcp_do_segment() 2066 avail = lbuf_used_space(&tp->sendbuf) - in tcp_do_segment() 2210 if (acked > lbuf_used_space(&tp->sendbuf)) { in tcp_do_segment() 2212 uint32_t usedspace = lbuf_used_space(&tp->sendbuf); in tcp_do_segment() 2214 poppedbytes = lbuf_pop(&tp->sendbuf, usedspace, &sig->links_popped); in tcp_do_segment() 2219 uint32_t poppedbytes = lbuf_pop(&tp->sendbuf, acked, &sig->links_popped); in tcp_do_segment()
|
D | tcp_timer.c | 226 tcplp_sys_log("Persist output: %zu bytes in sendbuf", lbuf_used_space(&tp->sendbuf)); in tcp_timer_persist()
|
D | tcp_var.h | 188 struct lbufhead sendbuf; member
|
/external/openthread/src/core/net/ |
D | tcp6.cpp | 109 lbuf_init(&tp.sendbuf); in Initialize() 213 VerifyOrExit(lbuf_head(&tp.sendbuf) != nullptr, error = kErrorInvalidState); in SendByExtension() 472 return lbuf_used_space(&tp.sendbuf); in GetSendBufferBytes() 660 otLinkedBuffer *priorHead = lbuf_head(&tp->sendbuf); in HandleMessage()
|
/external/clang/test/Sema/ |
D | warn-type-safety-mpi-hdf5.c | 34 int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | tls.c | 1172 int sendbuf = 100; in TEST_F() local 1184 &sendbuf, sizeof(sendbuf)), 0); in TEST_F()
|