Home
last modified time | relevance | path

Searched refs:DnsStream (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/resolve/
Dresolved-dns-stream.h10 typedef struct DnsStream DnsStream; typedef
48 struct DnsStream { struct
83 int (*on_packet)(DnsStream *s, DnsPacket *p); argument
84 int (*complete)(DnsStream *s, int error); argument
95 LIST_FIELDS(DnsStream, streams); argument
100 DnsStream **ret,
105 int (on_packet)(DnsStream*, DnsPacket*),
106 int (complete)(DnsStream*, int), /* optional */
109 int dns_stream_connect_tls(DnsStream *s, void *tls_session);
111 DnsStream *dns_stream_unref(DnsStream *s);
[all …]
Dresolved-dnstls.h10 typedef struct DnsStream DnsStream; typedef
26 int dnstls_stream_connect_tls(DnsStream *stream, DnsServer *server);
27 void dnstls_stream_free(DnsStream *stream);
28 int dnstls_stream_on_io(DnsStream *stream, uint32_t revents);
29 int dnstls_stream_shutdown(DnsStream *stream, int error);
30 ssize_t dnstls_stream_writev(DnsStream *stream, const struct iovec *iov, size_t iovcnt);
31 ssize_t dnstls_stream_read(DnsStream *stream, void *buf, size_t count);
Dresolved-dns-stream.c18 static void dns_stream_stop(DnsStream *s) { in dns_stream_stop()
29 static int dns_stream_update_io(DnsStream *s) { in dns_stream_update_io()
61 static int dns_stream_complete(DnsStream *s, int error) { in dns_stream_complete()
62 …_cleanup_(dns_stream_unrefp) _unused_ DnsStream *ref = dns_stream_ref(s); /* Protect stream while … in dns_stream_complete()
91 static int dns_stream_identify(DnsStream *s) { in dns_stream_identify()
206 ssize_t dns_stream_writev(DnsStream *s, const struct iovec *iov, size_t iovcnt, int flags) { in dns_stream_writev()
249 static ssize_t dns_stream_read(DnsStream *s, void *buf, size_t count) { in dns_stream_read()
267 DnsStream *s = userdata; in on_stream_timeout()
274 static DnsPacket *dns_stream_take_read_packet(DnsStream *s) { in dns_stream_take_read_packet()
298 …_cleanup_(dns_stream_unrefp) DnsStream *s = dns_stream_ref(userdata); /* Protect stream while we p… in on_stream_io()
[all …]
Dresolved-dnstls-gnutls.c22 …r = dns_stream_writev((DnsStream*) p, (const struct iovec*) iov, iovcnt, DNS_STREAM_WRITE_TLS_DATA… in dnstls_stream_vec_push()
31 int dnstls_stream_connect_tls(DnsStream *stream, DnsServer *server) { in dnstls_stream_connect_tls()
97 void dnstls_stream_free(DnsStream *stream) { in dnstls_stream_free()
105 int dnstls_stream_on_io(DnsStream *stream, uint32_t revents) { in dnstls_stream_on_io()
141 int dnstls_stream_shutdown(DnsStream *stream, int error) { in dnstls_stream_shutdown()
167 ssize_t dnstls_stream_writev(DnsStream *stream, const struct iovec *iov, size_t iovcnt) { in dnstls_stream_writev()
202 ssize_t dnstls_stream_read(DnsStream *stream, void *buf, size_t count) { in dnstls_stream_read()
Dresolved-dnstls-openssl.c17 static int dnstls_flush_write_buffer(DnsStream *stream) { in dnstls_flush_write_buffer()
51 int dnstls_stream_connect_tls(DnsStream *stream, DnsServer *server) { in dnstls_stream_connect_tls()
134 void dnstls_stream_free(DnsStream *stream) { in dnstls_stream_free()
142 int dnstls_stream_on_io(DnsStream *stream, uint32_t revents) { in dnstls_stream_on_io()
228 int dnstls_stream_shutdown(DnsStream *stream, int error) { in dnstls_stream_shutdown()
295 static ssize_t dnstls_stream_write(DnsStream *stream, const char *buf, size_t count) { in dnstls_stream_write()
327 ssize_t dnstls_stream_writev(DnsStream *stream, const struct iovec *iov, size_t iovcnt) { in dnstls_stream_writev()
350 ssize_t dnstls_stream_read(DnsStream *stream, void *buf, size_t count) { in dnstls_stream_read()
Dresolved-dns-server.h11 typedef struct DnsStream DnsStream; typedef
68 DnsStream *stream;
Dtest-resolved-stream.c184 static void send_simple_question(DnsStream *stream, uint16_t type) { in send_simple_question()
202 static int on_stream_packet(DnsStream *stream, DnsPacket *p) { in on_stream_packet()
208 static int on_stream_complete_do_nothing(DnsStream *s, int error) { in on_stream_complete_do_nothing()
214 _cleanup_(dns_stream_unrefp) DnsStream *stream = NULL; in test_dns_stream()
Dresolved-dns-stub.c518 DnsStream *s, in dns_stub_send()
637 DnsStream *s, in dns_stub_send_failure()
851 static int dns_stub_stream_complete(DnsStream *s, int error) { in dns_stub_stream_complete()
872 static void dns_stub_process_query(Manager *m, DnsStubListenerExtra *l, DnsStream *s, DnsPacket *p)… in dns_stub_process_query()
1040 static int on_dns_stub_stream_packet(DnsStream *s, DnsPacket *p) { in on_dns_stub_stream_packet()
1056 DnsStream *stream; in on_dns_stub_stream_internal()
Dresolved-llmnr.c280 static int on_llmnr_stream_packet(DnsStream *s, DnsPacket *p) { in on_llmnr_stream_packet()
301 DnsStream *stream; in on_llmnr_stream()
Dresolved-dns-query.h101 DnsStream *request_stream;
Dresolved-dns-scope.h90 void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p);
Dresolved-dns-transaction.h92 DnsStream *stream;
Dresolved-manager.h65 LIST_HEAD(DnsStream, dns_streams);
Dresolved-dns-transaction.c590 static int dns_transaction_on_stream_packet(DnsTransaction *t, DnsStream *s, DnsPacket *p) { in dns_transaction_on_stream_packet()
624 static int on_stream_complete(DnsStream *s, int error) { in on_stream_complete()
645 static int on_stream_packet(DnsStream *s, DnsPacket *p) { in on_stream_packet()
673 _cleanup_(dns_stream_unrefp) DnsStream *s = NULL; in dns_transaction_emit_tcp()
Dresolved-dns-server.c1054 DnsStream *ref; in dns_server_unref_stream()
Dresolved-dns-scope.c977 void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p) { in dns_scope_process_query()