Home
last modified time | relevance | path

Searched refs:sendbuf (Results 1 – 19 of 19) sorted by relevance

/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-udp/
Dminimal-raw-adopt-udp.c34 static uint8_t sendbuf[4096]; variable
65 if (sendlen > sizeof(sendbuf)) in callback_raw_test()
66 sendlen = sizeof(sendbuf); in callback_raw_test()
67 memcpy(sendbuf, in, sendlen); in callback_raw_test()
105 sendbuf, sendlen, 0, &udp.sa, udp.salen); in callback_raw_test()
/external/libpcap/
Drpcap-protocol.c85 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()
Dpcap-rpcap.c163 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog…
1061 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_startcapture_remote() local
1191 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_startcapture_remote()
1196 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote()
1228 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) in pcap_startcapture_remote()
1231 if (sock_send(pr->rmt_sockctrl, pr->ctrl_ssl, sendbuf, sendbufidx, fp->errbuf, in pcap_startcapture_remote()
1509 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter() argument
1525 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter()
1583 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_updatefilter_remote() local
1591 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_updatefilter_remote()
[all …]
/external/libpcap/rpcapd/
Ddaemon.c1223 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_auth_req() local
1361 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in daemon_msg_auth_req()
1364 authreply = (struct rpcap_authreply *) &sendbuf[sendbufidx]; in daemon_msg_auth_req()
1378 if (sock_send(pars->sockctrl, pars->ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_auth_req()
1600 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_findallif_req() local
1698 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_findallif_req()
1706 findalldevs_if = (struct rpcap_findalldevs_if *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req()
1751 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req()
1756 if (sock_bufferize(d->description, ldescr, sendbuf, &sendbufidx, in daemon_msg_findallif_req()
1775 sockaddr = (struct rpcap_sockaddr *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req()
[all …]
/external/curl/lib/
Dpingpong.c152 Curl_dyn_init(&pp->sendbuf, DYN_PINGPPONG_CMD); in Curl_pp_setup()
189 Curl_dyn_reset(&pp->sendbuf); in Curl_pp_vsendf()
190 result = Curl_dyn_vaddf(&pp->sendbuf, fmt, args); in Curl_pp_vsendf()
195 result = Curl_dyn_addn(&pp->sendbuf, "\r\n", 2); in Curl_pp_vsendf()
199 write_len = Curl_dyn_len(&pp->sendbuf); in Curl_pp_vsendf()
200 s = Curl_dyn_ptr(&pp->sendbuf); in Curl_pp_vsendf()
501 Curl_dyn_free(&pp->sendbuf); in Curl_pp_disconnect()
Dpingpong.h67 struct dynbuf sendbuf; member
/external/ipsec-tools/src/racoon/
Disakmp_ident.c206 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 …]
Disakmp_base.c245 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 …]
Dhandler.h147 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
Disakmp_cfg.c1211 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 …]
Disakmp_agg.c285 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) {
Disakmp_quick.c282 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 …]
Dhandler.c333 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);
Disakmp_inf.c964 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);
Dracoonctl.c336 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()
Disakmp.c830 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/clang/test/Sema/
Dwarn-type-safety-mpi-hdf5.c34 int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
/external/llvm-project/clang/test/Sema/
Dwarn-type-safety-mpi-hdf5.c34 int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
/external/linux-kselftest/tools/testing/selftests/net/
Dtls.c864 int sendbuf = 100; in TEST_F() local
876 &sendbuf, sizeof(sendbuf)), 0); in TEST_F()