Home
last modified time | relevance | path

Searched refs:abuf (Results 1 – 25 of 54) sorted by relevance

123

/third_party/toybox/toys/pending/
Dhost.c74 unsigned char *abuf = xmalloc(abuf_len); in host_main() local
133 alen = recv(s, abuf, abuf_len, 0); in host_main()
134 } else alen = res_send(qbuf, qlen, abuf, abuf_len); in host_main()
138 rcode = abuf[3] & 15; in host_main()
142 rcode, rct[rcode], 256*abuf[6] + abuf[7]); in host_main()
143 if (!(abuf[2] & 4)) printf("The following answer is not authoritative:\n"); in host_main()
148 p = abuf + 12; in host_main()
150 count = 256*abuf[4+2*sec] + abuf[5+2*sec]; in host_main()
156 p += dn_expand(abuf, abuf+alen, p, rrname, MAXDNAME); in host_main()
170 dn_expand(abuf, abuf+alen, p, plname, sizeof(plname)); in host_main()
[all …]
/third_party/node/deps/cares/src/tools/
Dadig.c143 unsigned char *abuf, int alen);
145 const unsigned char *abuf,
148 const unsigned char *abuf, int alen);
387 unsigned char *abuf, int alen) in callback() argument
406 if (!abuf) in callback()
415 id = DNS_HEADER_QID(abuf); in callback()
416 qr = DNS_HEADER_QR(abuf); in callback()
417 opcode = DNS_HEADER_OPCODE(abuf); in callback()
418 aa = DNS_HEADER_AA(abuf); in callback()
419 tc = DNS_HEADER_TC(abuf); in callback()
[all …]
/third_party/node/deps/cares/src/lib/
Dares_parse_txt_reply.c42 ares__parse_txt_reply (const unsigned char *abuf, int alen, in ares__parse_txt_reply() argument
64 qdcount = DNS_HEADER_QDCOUNT (abuf); in ares__parse_txt_reply()
65 ancount = DNS_HEADER_ANCOUNT (abuf); in ares__parse_txt_reply()
72 aptr = abuf + HFIXEDSZ; in ares__parse_txt_reply()
73 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares__parse_txt_reply()
77 if (aptr + len + QFIXEDSZ > abuf + alen) in ares__parse_txt_reply()
88 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares__parse_txt_reply()
94 if (aptr + RRFIXEDSZ > abuf + alen) in ares__parse_txt_reply()
103 if (aptr + rr_len > abuf + alen) in ares__parse_txt_reply()
202 ares_parse_txt_reply (const unsigned char *abuf, int alen, in ares_parse_txt_reply() argument
[all …]
Dares_parse_naptr_reply.c38 ares_parse_naptr_reply (const unsigned char *abuf, int alen, in ares_parse_naptr_reply() argument
58 qdcount = DNS_HEADER_QDCOUNT (abuf); in ares_parse_naptr_reply()
59 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_naptr_reply()
66 aptr = abuf + HFIXEDSZ; in ares_parse_naptr_reply()
67 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_naptr_reply()
71 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_naptr_reply()
82 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_naptr_reply()
88 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_naptr_reply()
97 if (aptr + rr_len > abuf + alen) in ares_parse_naptr_reply()
138 status = ares_expand_string(vptr, abuf, alen, &naptr_curr->flags, &len); in ares_parse_naptr_reply()
[all …]
Dares_parse_soa_reply.c38 ares_parse_soa_reply(const unsigned char *abuf, int alen, in ares_parse_soa_reply() argument
52 qdcount = DNS_HEADER_QDCOUNT(abuf); in ares_parse_soa_reply()
53 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_soa_reply()
60 aptr = abuf + HFIXEDSZ; in ares_parse_soa_reply()
63 status = ares__expand_name_for_response(aptr, abuf, alen, &qname, &len, 0); in ares_parse_soa_reply()
74 if (aptr + QFIXEDSZ > abuf + alen) in ares_parse_soa_reply()
86 status = ares__expand_name_for_response (aptr, abuf, alen, &rr_name, &len, 0); in ares_parse_soa_reply()
94 if ( aptr + RRFIXEDSZ > abuf + alen ) in ares_parse_soa_reply()
104 if (aptr + rr_len > abuf + alen) in ares_parse_soa_reply()
122 status = ares__expand_name_for_response(aptr, abuf, alen, &soa->nsname, in ares_parse_soa_reply()
[all …]
Dares_expand_name.c32 static int name_length(const unsigned char *encoded, const unsigned char *abuf,
117 const unsigned char *abuf, in ares__expand_name_validated() argument
129 nlen.sig = name_length(encoded, abuf, alen, is_hostname); in ares__expand_name_validated()
165 p = abuf + ((*p & ~INDIR_MASK) << 8 | *(p + 1)); in ares__expand_name_validated()
212 int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, in ares_expand_name() argument
215 return ares__expand_name_validated(encoded, abuf, alen, s, enclen, 0); in ares_expand_name()
221 static int name_length(const unsigned char *encoded, const unsigned char *abuf, in name_length() argument
227 if (encoded >= abuf + alen) in name_length()
236 if (encoded + 1 >= abuf + alen) in name_length()
241 encoded = abuf + offset; in name_length()
[all …]
Dares_parse_mx_reply.c38 ares_parse_mx_reply (const unsigned char *abuf, int alen, in ares_parse_mx_reply() argument
58 qdcount = DNS_HEADER_QDCOUNT (abuf); in ares_parse_mx_reply()
59 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_mx_reply()
66 aptr = abuf + HFIXEDSZ; in ares_parse_mx_reply()
67 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_mx_reply()
71 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_mx_reply()
82 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_mx_reply()
88 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_mx_reply()
97 if (aptr + rr_len > abuf + alen) in ares_parse_mx_reply()
134 status = ares_expand_name (vptr, abuf, alen, &mx_curr->host, &len); in ares_parse_mx_reply()
Dares__parse_into_addrinfo.c42 int ares__parse_into_addrinfo(const unsigned char *abuf, in ares__parse_into_addrinfo() argument
62 qdcount = DNS_HEADER_QDCOUNT(abuf); in ares__parse_into_addrinfo()
63 ancount = DNS_HEADER_ANCOUNT(abuf); in ares__parse_into_addrinfo()
69 aptr = abuf + HFIXEDSZ; in ares__parse_into_addrinfo()
70 status = ares__expand_name_for_response(aptr, abuf, alen, &question_hostname, &len, 0); in ares__parse_into_addrinfo()
73 if (aptr + len + QFIXEDSZ > abuf + alen) in ares__parse_into_addrinfo()
87 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len, 0); in ares__parse_into_addrinfo()
95 if (aptr + RRFIXEDSZ > abuf + alen) in ares__parse_into_addrinfo()
105 if (aptr + rr_len > abuf + alen) in ares__parse_into_addrinfo()
116 if (aptr + sizeof(struct in_addr) > abuf + alen) in ares__parse_into_addrinfo()
[all …]
Dares_parse_ns_reply.c39 int ares_parse_ns_reply( const unsigned char* abuf, int alen, in ares_parse_ns_reply() argument
58 qdcount = DNS_HEADER_QDCOUNT( abuf ); in ares_parse_ns_reply()
59 ancount = DNS_HEADER_ANCOUNT( abuf ); in ares_parse_ns_reply()
64 aptr = abuf + HFIXEDSZ; in ares_parse_ns_reply()
65 status = ares__expand_name_for_response( aptr, abuf, alen, &hostname, &len, 0); in ares_parse_ns_reply()
68 if ( aptr + len + QFIXEDSZ > abuf + alen ) in ares_parse_ns_reply()
88 status = ares__expand_name_for_response( aptr, abuf, alen, &rr_name, &len, 0); in ares_parse_ns_reply()
92 if ( aptr + RRFIXEDSZ > abuf + alen ) in ares_parse_ns_reply()
102 if (aptr + rr_len > abuf + alen) in ares_parse_ns_reply()
112 status = ares__expand_name_for_response( aptr, abuf, alen, &rr_data, in ares_parse_ns_reply()
[all …]
Dares_parse_srv_reply.c38 ares_parse_srv_reply (const unsigned char *abuf, int alen, in ares_parse_srv_reply() argument
58 qdcount = DNS_HEADER_QDCOUNT (abuf); in ares_parse_srv_reply()
59 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_srv_reply()
66 aptr = abuf + HFIXEDSZ; in ares_parse_srv_reply()
67 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_srv_reply()
71 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_srv_reply()
82 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_srv_reply()
88 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_srv_reply()
97 if (aptr + rr_len > abuf + alen) in ares_parse_srv_reply()
138 status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len); in ares_parse_srv_reply()
Dares_parse_ptr_reply.c37 int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, in ares_parse_ptr_reply() argument
59 qdcount = DNS_HEADER_QDCOUNT(abuf); in ares_parse_ptr_reply()
60 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_ptr_reply()
65 aptr = abuf + HFIXEDSZ; in ares_parse_ptr_reply()
66 status = ares__expand_name_for_response(aptr, abuf, alen, &ptrname, &len, 0); in ares_parse_ptr_reply()
69 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_ptr_reply()
87 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_name, &len, 0); in ares_parse_ptr_reply()
91 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_ptr_reply()
101 if (aptr + rr_len > abuf + alen) in ares_parse_ptr_reply()
112 status = ares__expand_name_for_response(aptr, abuf, alen, &rr_data, in ares_parse_ptr_reply()
[all …]
Dares_parse_uri_reply.c43 ares_parse_uri_reply (const unsigned char *abuf, int alen, in ares_parse_uri_reply() argument
64 qdcount = DNS_HEADER_QDCOUNT (abuf); in ares_parse_uri_reply()
65 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_uri_reply()
73 aptr = abuf + HFIXEDSZ; in ares_parse_uri_reply()
75 status = ares_expand_name (aptr, abuf, alen, &uri_str, &len); in ares_parse_uri_reply()
79 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_uri_reply()
90 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_uri_reply()
96 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_uri_reply()
108 if (aptr + rr_len > abuf + alen) in ares_parse_uri_reply()
Dares_parse_caa_reply.c41 ares_parse_caa_reply (const unsigned char *abuf, int alen, in ares_parse_caa_reply() argument
62 qdcount = DNS_HEADER_QDCOUNT (abuf); in ares_parse_caa_reply()
63 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_caa_reply()
70 aptr = abuf + HFIXEDSZ; in ares_parse_caa_reply()
71 status = ares_expand_name (aptr, abuf, alen, &hostname, &len); in ares_parse_caa_reply()
75 if (aptr + len + QFIXEDSZ > abuf + alen) in ares_parse_caa_reply()
86 status = ares_expand_name (aptr, abuf, alen, &rr_name, &len); in ares_parse_caa_reply()
92 if (aptr + RRFIXEDSZ > abuf + alen) in ares_parse_caa_reply()
101 if (aptr + rr_len > abuf + alen) in ares_parse_caa_reply()
Dares_process.c70 static void process_answer(ares_channel channel, unsigned char *abuf,
82 const unsigned char *abuf, int alen);
84 static int has_opt_rr(const unsigned char *abuf, int alen);
86 unsigned char *abuf, int alen);
564 static void process_answer(ares_channel channel, unsigned char *abuf, in process_answer() argument
580 id = DNS_HEADER_QID(abuf); in process_answer()
581 tc = DNS_HEADER_TC(abuf); in process_answer()
582 rcode = DNS_HEADER_RCODE(abuf); in process_answer()
596 if ((q->qid == id) && same_questions(q->qbuf, q->qlen, abuf, alen)) in process_answer()
612 if (rcode == FORMERR && has_opt_rr(abuf, alen) != 1) in process_answer()
[all …]
Dares_query.c34 static void qcallback(void *arg, int status, int timeouts, unsigned char *abuf, int alen);
141 static void qcallback(void *arg, int status, int timeouts, unsigned char *abuf, int alen) in qcallback() argument
148 qquery->callback(qquery->arg, status, timeouts, abuf, alen); in qcallback()
152 rcode = DNS_HEADER_RCODE(abuf); in qcallback()
153 ancount = DNS_HEADER_ANCOUNT(abuf); in qcallback()
177 qquery->callback(qquery->arg, status, timeouts, abuf, alen); in qcallback()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/
Dradius_das.c36 const char *abuf, in radius_das_disconnect() argument
71 abuf, from_port); in radius_das_disconnect()
82 abuf, from_port); in radius_das_disconnect()
94 abuf, from_port); in radius_das_disconnect()
116 "'%s' from %s:%d", tmp, abuf, from_port); in radius_das_disconnect()
151 abuf, from_port); in radius_das_disconnect()
156 "%s:%d", abuf, from_port); in radius_das_disconnect()
162 abuf, from_port); in radius_das_disconnect()
194 const char *abuf, int from_port) in radius_das_coa() argument
236 attr, abuf, from_port); in radius_das_coa()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/
Dradius_das.c36 const char *abuf, in radius_das_disconnect() argument
71 abuf, from_port); in radius_das_disconnect()
82 abuf, from_port); in radius_das_disconnect()
94 abuf, from_port); in radius_das_disconnect()
116 "'%s' from %s:%d", tmp, abuf, from_port); in radius_das_disconnect()
151 abuf, from_port); in radius_das_disconnect()
156 "%s:%d", abuf, from_port); in radius_das_disconnect()
162 abuf, from_port); in radius_das_disconnect()
194 const char *abuf, int from_port) in radius_das_coa() argument
236 attr, abuf, from_port); in radius_das_coa()
[all …]
/third_party/node/deps/cares/include/
Dares.h294 unsigned char *abuf,
497 const unsigned char *abuf,
503 const unsigned char *abuf,
646 CARES_EXTERN int ares_parse_a_reply(const unsigned char *abuf,
652 CARES_EXTERN int ares_parse_aaaa_reply(const unsigned char *abuf,
658 CARES_EXTERN int ares_parse_caa_reply(const unsigned char* abuf,
662 CARES_EXTERN int ares_parse_ptr_reply(const unsigned char *abuf,
669 CARES_EXTERN int ares_parse_ns_reply(const unsigned char *abuf,
673 CARES_EXTERN int ares_parse_srv_reply(const unsigned char* abuf,
677 CARES_EXTERN int ares_parse_mx_reply(const unsigned char* abuf,
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudiosrc.c186 GstAudioSrcRingBuffer *abuf = GST_AUDIO_SRC_RING_BUFFER (buf); in audioringbuffer_thread_func() local
235 } while (left > 0 && g_atomic_int_get (&abuf->running)); in audioringbuffer_thread_func()
243 GST_OBJECT_LOCK (abuf); in audioringbuffer_thread_func()
244 if (!abuf->running) in audioringbuffer_thread_func()
248 GST_OBJECT_UNLOCK (abuf); in audioringbuffer_thread_func()
256 if (!abuf->running) in audioringbuffer_thread_func()
259 GST_OBJECT_UNLOCK (abuf); in audioringbuffer_thread_func()
275 GST_OBJECT_UNLOCK (abuf); in audioringbuffer_thread_func()
372 GstAudioSrcRingBuffer *abuf; in gst_audio_src_ring_buffer_acquire() local
394 abuf = GST_AUDIO_SRC_RING_BUFFER (buf); in gst_audio_src_ring_buffer_acquire()
[all …]
Dgstaudiosink.c204 GstAudioSinkRingBuffer *abuf = GST_AUDIO_SINK_RING_BUFFER_CAST (buf); in audioringbuffer_thread_func() local
215 GST_OBJECT_LOCK (abuf); in audioringbuffer_thread_func()
218 GST_OBJECT_UNLOCK (abuf); in audioringbuffer_thread_func()
271 GST_OBJECT_LOCK (abuf); in audioringbuffer_thread_func()
272 if (!abuf->running) in audioringbuffer_thread_func()
276 GST_OBJECT_UNLOCK (abuf); in audioringbuffer_thread_func()
284 if (!abuf->running) in audioringbuffer_thread_func()
287 GST_OBJECT_UNLOCK (abuf); in audioringbuffer_thread_func()
303 GST_OBJECT_UNLOCK (abuf); in audioringbuffer_thread_func()
442 GstAudioSinkRingBuffer *abuf; in gst_audio_sink_ring_buffer_activate() local
[all …]
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Daudio.c122 GstAudioBuffer abuf; in GST_START_TEST() local
148 gst_audio_buffer_map (&abuf, &info, ret, GST_MAP_READ); in GST_START_TEST()
149 fail_unless_equals_int (abuf.n_planes, 1); in GST_START_TEST()
150 fail_unless_equals_int (GST_AUDIO_BUFFER_PLANE_SIZE (&abuf), 400); in GST_START_TEST()
151 fail_unless_equals_pointer (abuf.planes[0], data + 200); in GST_START_TEST()
152 gst_audio_buffer_unmap (&abuf); in GST_START_TEST()
201 GstAudioBuffer abuf; in GST_START_TEST() local
233 gst_audio_buffer_map (&abuf, &info, ret, GST_MAP_READ); in GST_START_TEST()
234 fail_unless_equals_int (abuf.n_planes, 2); in GST_START_TEST()
235 fail_unless_equals_int (GST_AUDIO_BUFFER_PLANE_SIZE (&abuf), 300); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstplugins_good/ext/jack/
Dgstjackaudiosrc.c261 GstJackRingBuffer *abuf; in jack_sample_rate_cb() local
263 abuf = GST_JACK_RING_BUFFER_CAST (arg); in jack_sample_rate_cb()
266 if (abuf->sample_rate != -1 && abuf->sample_rate != nframes) in jack_sample_rate_cb()
285 GstJackRingBuffer *abuf; in jack_buffer_size_cb() local
287 abuf = GST_JACK_RING_BUFFER_CAST (arg); in jack_buffer_size_cb()
290 if (abuf->buffer_size != -1 && abuf->buffer_size != nframes) in jack_buffer_size_cb()
409 GstJackRingBuffer *abuf; in gst_jack_ring_buffer_acquire() local
415 abuf = GST_JACK_RING_BUFFER_CAST (buf); in gst_jack_ring_buffer_acquire()
535 abuf->sample_rate = sample_rate; in gst_jack_ring_buffer_acquire()
536 abuf->buffer_size = buffer_size; in gst_jack_ring_buffer_acquire()
[all …]
Dgstjackaudiosink.c256 GstJackRingBuffer *abuf; in jack_sample_rate_cb() local
258 abuf = GST_JACK_RING_BUFFER_CAST (arg); in jack_sample_rate_cb()
261 if (abuf->sample_rate != -1 && abuf->sample_rate != nframes) in jack_sample_rate_cb()
280 GstJackRingBuffer *abuf; in jack_buffer_size_cb() local
282 abuf = GST_JACK_RING_BUFFER_CAST (arg); in jack_buffer_size_cb()
285 if (abuf->buffer_size != -1 && abuf->buffer_size != nframes) in jack_buffer_size_cb()
403 GstJackRingBuffer *abuf; in gst_jack_ring_buffer_acquire() local
409 abuf = GST_JACK_RING_BUFFER_CAST (buf); in gst_jack_ring_buffer_acquire()
527 abuf->sample_rate = sample_rate; in gst_jack_ring_buffer_acquire()
528 abuf->buffer_size = buffer_size; in gst_jack_ring_buffer_acquire()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dplanaraudioadapter.c67 GstAudioBuffer abuf; in verify_buffer_contents() local
71 gst_audio_buffer_map (&abuf, info, buf, GST_MAP_READ); in verify_buffer_contents()
72 fail_unless_equals_int (GST_AUDIO_BUFFER_N_PLANES (&abuf), expect_n_planes); in verify_buffer_contents()
73 fail_unless_equals_int (GST_AUDIO_BUFFER_PLANE_SIZE (&abuf), in verify_buffer_contents()
76 for (i = 0; i < GST_AUDIO_BUFFER_N_PLANES (&abuf); i++) { in verify_buffer_contents()
80 fail_unless_equals_pointer (abuf.planes[i], in verify_buffer_contents()
85 byte = abuf.planes[i]; in verify_buffer_contents()
86 while (byte < ((guint8 *) abuf.planes[i]) + expect_plane_size) { in verify_buffer_contents()
92 gst_audio_buffer_unmap (&abuf); in verify_buffer_contents()
/third_party/openssl/test/
Ddhtest.c42 unsigned char *abuf = NULL; in dh_test() local
192 if (!TEST_ptr(abuf = OPENSSL_malloc(alen)) in dh_test()
193 || !TEST_true((aout = DH_compute_key(abuf, bpub_key, a)) != -1)) in dh_test()
207 || !TEST_mem_eq(abuf, aout, bbuf, bout) in dh_test()
208 || !TEST_mem_eq(abuf, aout, cbuf, cout)) in dh_test()
224 OPENSSL_free(abuf); in dh_test()
641 unsigned char *abuf = NULL; in rfc7919_test() local
671 if (!TEST_ptr(abuf = OPENSSL_malloc(alen)) in rfc7919_test()
672 || !TEST_true((aout = DH_compute_key(abuf, bpub_key, a)) != -1)) in rfc7919_test()
681 || !TEST_mem_eq(abuf, aout, bbuf, bout)) in rfc7919_test()
[all …]

123