Home
last modified time | relevance | path

Searched refs:rcode (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/shared/
Dloopback-setup.c17 int rcode; member
41 s->rcode = r; in generic_handler()
207 if (state_up.rcode != 0) { in loopback_setup()
211 if (state_up.rcode == -EPERM && check_loopback(rtnl)) in loopback_setup()
214 return log_warning_errno(state_up.rcode, "Failed to configure loopback device: %m"); in loopback_setup()
Dptyfwd.c114 static int pty_forward_done(PTYForward *f, int rcode) { in pty_forward_done() argument
127 return f->handler(f, rcode, f->userdata); in pty_forward_done()
129 return sd_event_exit(e, rcode < 0 ? EXIT_FAILURE : rcode); in pty_forward_done()
Dptyfwd.h22 typedef int (*PTYForwardHandler)(PTYForward *f, int rcode, void *userdata);
/systemd-251/src/resolve/
Dresolved-dns-packet.h117 uint16_t rcode; in DNS_PACKET_RCODE() local
120 rcode = (uint16_t) (p->opt->ttl >> 24); in DNS_PACKET_RCODE()
122 rcode = 0; in DNS_PACKET_RCODE()
124 return rcode | (be16toh(DNS_PACKET_HEADER(p)->flags) & 0xF); in DNS_PACKET_RCODE()
174 #define DNS_PACKET_MAKE_FLAGS(qr, opcode, aa, tc, rd, ra, ad, cd, rcode) \ argument
183 ((uint16_t) ((rcode) & 15)))
228 … max_udp_size, bool edns0_do, bool include_rfc6975, const char *nsid, int rcode, size_t *ret_start…
Dresolved-dns-cache.c39 int rcode; member
80 return dns_rcode_to_string(item->rcode); in dns_cache_item_type_to_string()
519 int rcode, in dns_cache_put_negative() argument
546 if (IN_SET(rcode, DNS_RCODE_SUCCESS, DNS_RCODE_NXDOMAIN)) { in dns_cache_put_negative()
556 } else if (rcode != DNS_RCODE_SERVFAIL) in dns_cache_put_negative()
571 rcode == DNS_RCODE_SUCCESS ? DNS_CACHE_NODATA : in dns_cache_put_negative()
572 rcode == DNS_RCODE_NXDOMAIN ? DNS_CACHE_NXDOMAIN : DNS_CACHE_RCODE, in dns_cache_put_negative()
578 .rcode = rcode, in dns_cache_put_negative()
676 int rcode, in dns_cache_put() argument
703 if (IN_SET(rcode, DNS_RCODE_SUCCESS, DNS_RCODE_NXDOMAIN)) { in dns_cache_put()
[all …]
Dresolved-dns-stub.c434 int rcode, in dns_stub_finish_reply_packet() argument
450 …, max_udp_size, edns0_do, /* include_rfc6975 = */ false, nsid ? nsid_string() : NULL, rcode, NULL); in dns_stub_finish_reply_packet()
460 if (rcode > 0xF) in dns_stub_finish_reply_packet()
461 rcode = DNS_RCODE_SERVFAIL; in dns_stub_finish_reply_packet()
482 rcode)); in dns_stub_finish_reply_packet()
585 int rcode) { in dns_stub_send_reply() argument
618 rcode, in dns_stub_send_reply()
639 int rcode, in dns_stub_send_failure() argument
660 rcode, in dns_stub_send_failure()
Dresolved-dns-cache.h30 int rcode,
Dresolved-dns-scope.h89 int dns_scope_make_reply_packet(DnsScope *s, uint16_t id, int rcode, DnsQuestion *q, DnsAnswer *ans…
Dresolved-dns-packet.c727 int rcode, in dns_packet_append_opt() argument
736 assert(rcode >= 0); in dns_packet_append_opt()
737 assert(rcode <= _DNS_RCODE_MAX); in dns_packet_append_opt()
762 r = dns_packet_append_uint16(p, ((uint16_t) rcode & 0x0FF0) << 4, NULL); in dns_packet_append_opt()
Dresolved-dns-scope.c904 int rcode, in dns_scope_make_reply_packet() argument
941 rcode)); in dns_scope_make_reply_packet()
/systemd-251/src/run/
Drun.c1092 static int pty_forward_handler(PTYForward *f, int rcode, void *userdata) { in pty_forward_handler() argument
1097 if (rcode < 0) { in pty_forward_handler()
1099 return log_error_errno(rcode, "Error on PTY forwarding logic: %m"); in pty_forward_handler()