Home
last modified time | relevance | path

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

/systemd-251/src/resolve/
Dresolved-dns-packet.h14 typedef struct DnsPacket DnsPacket; typedef
61 struct DnsPacket { struct
75 DnsPacket *more; argument
93 static inline uint8_t* DNS_PACKET_DATA(const DnsPacket *p) { in DNS_PACKET_DATA() argument
100 return ((uint8_t*) p) + ALIGN(sizeof(DnsPacket)); in DNS_PACKET_DATA()
116 static inline uint16_t DNS_PACKET_RCODE(DnsPacket *p) { in DNS_PACKET_RCODE()
127 static inline uint16_t DNS_PACKET_PAYLOAD_SIZE_MAX(DnsPacket *p) { in DNS_PACKET_PAYLOAD_SIZE_MAX()
140 static inline bool DNS_PACKET_DO(DnsPacket *p) { in DNS_PACKET_DO()
147 static inline bool DNS_PACKET_VERSION_SUPPORTED(DnsPacket *p) { in DNS_PACKET_VERSION_SUPPORTED()
157 static inline bool DNS_PACKET_IS_FRAGMENTED(DnsPacket *p) { in DNS_PACKET_IS_FRAGMENTED()
[all …]
Dresolved-dns-packet.c23 DnsPacket *packet;
39 DnsPacket **ret, in dns_packet_new()
44 DnsPacket *p; in dns_packet_new()
71 a = PAGE_ALIGN(ALIGN(sizeof(DnsPacket)) + a) - ALIGN(sizeof(DnsPacket)); in dns_packet_new()
77 p = malloc0(ALIGN(sizeof(DnsPacket)) + a); in dns_packet_new()
81 *p = (DnsPacket) { in dns_packet_new()
97 void dns_packet_set_flags(DnsPacket *p, bool dnssec_checking_disabled, bool truncated) { in dns_packet_set_flags()
147 int dns_packet_new_query(DnsPacket **ret, DnsProtocol protocol, size_t min_alloc_dsize, bool dnssec… in dns_packet_new_query()
148 DnsPacket *p; in dns_packet_new_query()
166 int dns_packet_dup(DnsPacket **ret, DnsPacket *p) { in dns_packet_dup()
[all …]
Dresolved-manager.h167 int manager_write(Manager *m, int fd, DnsPacket *p);
168 … union in_addr_union *destination, uint16_t port, const union in_addr_union *source, DnsPacket *p);
169 int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret);
177 bool manager_packet_from_local_address(Manager *m, DnsPacket *p);
178 bool manager_packet_from_our_transaction(Manager *m, DnsPacket *p);
180 DnsScope* manager_find_scope(Manager *m, DnsPacket *p);
Dresolved-dns-stub.c93 static void stub_packet_hash_func(const DnsPacket *p, struct siphash *state) { in stub_packet_hash_func()
106 static int stub_packet_compare_func(const DnsPacket *x, const DnsPacket *y) { in stub_packet_compare_func()
132 DEFINE_HASH_OPS(stub_packet_hash_ops, DnsPacket, stub_packet_hash_func, stub_packet_compare_func);
320 DnsPacket **ret, in dns_stub_make_reply_packet()
325 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in dns_stub_make_reply_packet()
353 DnsPacket *p, in dns_stub_add_reply_packet_body()
432 DnsPacket *p, in dns_stub_finish_reply_packet()
519 DnsPacket *p, in dns_stub_send()
520 DnsPacket *reply) { in dns_stub_send()
587 _cleanup_(dns_packet_unrefp) DnsPacket *reply = NULL; in dns_stub_send_reply()
[all …]
Dresolved-dns-stream.h79 DnsPacket *write_packet, *read_packet;
83 int (*on_packet)(DnsStream *s, DnsPacket *p);
105 int (on_packet)(DnsStream*, DnsPacket*),
116 int dns_stream_write_packet(DnsStream *s, DnsPacket *p);
Dresolved-dns-query.h53 DnsPacket *question_bypass;
75 DnsPacket *answer_full_packet;
100 DnsPacket *request_packet;
130 …, DnsQuery **q, DnsQuestion *question_utf8, DnsQuestion *question_idna, DnsPacket *question_bypass…
Dresolved-dns-scope.h75 int dns_scope_emit_udp(DnsScope *s, int fd, int af, DnsPacket *p);
89 …id, int rcode, DnsQuestion *q, DnsAnswer *answer, DnsAnswer *soa, bool tentative, DnsPacket **ret);
90 void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p);
95 void dns_scope_check_conflicts(DnsScope *scope, DnsPacket *p);
Dresolved-dns-cache.h32 DnsPacket *full_packet,
45 DnsPacket **ret_full_packet,
56 int dns_cache_export_shared_to_packet(DnsCache *cache, DnsPacket *p);
Dresolved-dns-transaction.h56 DnsPacket *bypass; /* For bypass lookups the full original request packet */
60 DnsPacket *sent, *received;
145 int dns_transaction_new(DnsTransaction **ret, DnsScope *s, DnsResourceKey *key, DnsPacket *bypass, …
153 void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p, bool encrypted);
Dresolved-mdns.c108 static int mdns_packet_extract_matching_rrs(DnsPacket *p, DnsResourceKey *key, DnsResourceRecord **… in mdns_packet_extract_matching_rrs()
160 static int mdns_do_tiebreak(DnsResourceKey *key, DnsAnswer *answer, DnsPacket *p) { in mdns_do_tiebreak()
188 static bool mdns_should_reply_using_unicast(DnsPacket *p) { in mdns_should_reply_using_unicast()
217 static bool sender_on_local_subnet(DnsScope *s, DnsPacket *p) { in sender_on_local_subnet()
242 static int mdns_scope_process_query(DnsScope *s, DnsPacket *p) { in mdns_scope_process_query()
244 _cleanup_(dns_packet_unrefp) DnsPacket *reply = NULL; in mdns_scope_process_query()
353 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in on_mdns_packet()
Dtest-resolved-packet.c9 _cleanup_(dns_packet_unrefp) DnsPacket *p2 = NULL; in TEST()
12 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in TEST()
Dresolved-dns-server.h12 typedef struct DnsPacket DnsPacket; typedef
133 int dns_server_adjust_opt(DnsServer *server, DnsPacket *packet, DnsServerFeatureLevel level);
Dresolved-dns-scope.c189 static int dns_scope_emit_one(DnsScope *s, int fd, int family, DnsPacket *p) { in dns_scope_emit_one()
320 int dns_scope_emit_udp(DnsScope *s, int fd, int af, DnsPacket *p) { in dns_scope_emit_udp()
909 DnsPacket **ret) { in dns_scope_make_reply_packet()
911 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in dns_scope_make_reply_packet()
963 static void dns_scope_verify_conflicts(DnsScope *s, DnsPacket *p) { in dns_scope_verify_conflicts()
977 void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p) { in dns_scope_process_query()
979 _cleanup_(dns_packet_unrefp) DnsPacket *reply = NULL; in dns_scope_process_query()
1127 DnsPacket **ret) { in dns_scope_make_conflict_packet()
1129 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in dns_scope_make_conflict_packet()
1183 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in on_conflict_dispatch()
[all …]
Dresolved-dns-cache.c43 DnsPacket *full_packet; /* The full packet this information was acquired with */
358 DnsPacket *full_packet, in dns_cache_item_update_positive()
406 DnsPacket *full_packet, in dns_cache_put_positive()
521 DnsPacket *full_packet, in dns_cache_put_negative()
678 DnsPacket *full_packet, in dns_cache_put()
971 DnsPacket **ret_full_packet, in dns_cache_lookup()
975 _cleanup_(dns_packet_unrefp) DnsPacket *full_packet = NULL; in dns_cache_lookup()
1252 int dns_cache_export_shared_to_packet(DnsCache *cache, DnsPacket *p) { in dns_cache_export_shared_to_packet()
Dresolved-dns-stream.c274 static DnsPacket *dns_stream_take_read_packet(DnsStream *s) { in dns_stream_take_read_packet()
429 _cleanup_(dns_packet_unrefp) DnsPacket *p = dns_stream_take_read_packet(s); in on_stream_io()
466 DnsPacket *p; in dns_stream_free()
503 int (on_packet)(DnsStream*, DnsPacket*), in dns_stream_new() argument
572 int dns_stream_write_packet(DnsStream *s, DnsPacket *p) { in dns_stream_write_packet()
Dresolved-manager.c748 int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret) { in manager_recv()
749 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in manager_recv()
936 int manager_write(Manager *m, int fd, DnsPacket *p) { in manager_write()
959 DnsPacket *p) { in manager_ipv4_send()
1014 DnsPacket *p) { in manager_ipv6_send()
1071 DnsPacket *p) { in manager_send()
1246 bool manager_packet_from_local_address(Manager *m, DnsPacket *p) { in manager_packet_from_local_address()
1255 bool manager_packet_from_our_transaction(Manager *m, DnsPacket *p) { in manager_packet_from_our_transaction()
1271 DnsScope* manager_find_scope(Manager *m, DnsPacket *p) { in manager_find_scope()
Dtest-resolved-stream.c185 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in send_simple_question()
199 static DnsPacket *received_packets[2] = {};
202 static int on_stream_packet(DnsStream *stream, DnsPacket *p) { in on_stream_packet()
Dfuzz-dns-packet.c8 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in LLVMFuzzerTestOneInput()
Dresolved-llmnr.c73 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in on_llmnr_packet()
280 static int on_llmnr_stream_packet(DnsStream *s, DnsPacket *p) { in on_llmnr_stream_packet()
Dresolved-dns-transaction.c227 DnsPacket *bypass, in dns_transaction_new()
335 static void dns_transaction_tentative(DnsTransaction *t, DnsPacket *p) { in dns_transaction_tentative()
590 static int dns_transaction_on_stream_packet(DnsTransaction *t, DnsStream *s, DnsPacket *p) { in dns_transaction_on_stream_packet()
645 static int on_stream_packet(DnsStream *s, DnsPacket *p) { in on_stream_packet()
1036 void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p, bool encrypted) { in dns_transaction_process_reply()
1408 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in on_dns_packet()
1758 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in dns_transaction_make_packet_mdns()
1888 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in dns_transaction_make_packet()
Dtest-dns-packet.c54 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL, *p2 = NULL; in test_packet_from_file()
Dresolved-dns-query.c122 DnsPacket *bypass) { in dns_query_candidate_add_transaction()
443 DnsPacket *question_bypass, in dns_query_new()
Dresolved-dns-server.c594 int dns_server_adjust_opt(DnsServer *server, DnsPacket *packet, DnsServerFeatureLevel level) { in dns_server_adjust_opt()
Dresolved-dns-rr.c1204 DnsPacket packet = { in dns_resource_record_to_wire_format()
Dresolvectl.c398 _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; in output_rr_packet()