resolved-manager.h revision edc501d4674dadc304d45a7e1c5b69e207eb8cd4
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering This file is part of systemd.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering Copyright 2014 Tom Gundersen <teg@jklm.no>
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering systemd is free software; you can redistribute it and/or modify it
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering under the terms of the GNU Lesser General Public License as published by
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering (at your option) any later version.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering systemd is distributed in the hope that it will be useful, but
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering Lesser General Public License for more details.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering You should have received a copy of the GNU Lesser General Public License
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* DNS query management */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* Unicast dns */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering LIST_HEAD(DnsServer, fallback_dns_servers);
ff9b60f38bf68eba4a47cabff14547d92e083214Torstein Husebø sd_event_source *llmnr_ipv4_udp_event_source;
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal Sekletar sd_event_source *llmnr_ipv6_udp_event_source;
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal Sekletar sd_event_source *llmnr_ipv4_tcp_event_source;
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal Sekletar sd_event_source *llmnr_ipv6_tcp_event_source;
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal Sekletar /* The hostname we publish on LLMNR and mDNS */
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal Sekletar /* Watch the system hostname */
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal SekletarDnsServer *manager_set_dns_server(Manager *m, DnsServer *s);
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal SekletarDnsServer *manager_find_dns_server(Manager *m, int family, const union in_addr_union *in_addr);
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal SekletarDnsServer *manager_get_dns_server(Manager *m);
ff49bc3212cb07d850dcfd59940539773a0be26fMichal Schmidtint manager_send(Manager *m, int fd, int ifindex, int family, const union in_addr_union *addr, uint16_t port, DnsPacket *p);
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal Sekletarint manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret);
63229aa1abdb98aa69fda9819ed2f40c8082762bLennart Poetteringint manager_llmnr_ipv4_tcp_fd(Manager *m);
a34286684ebb78dd3db0d7f34feb2c121c9d00ccMichal Sekletarint manager_ifindex_is_loopback(Manager *m, int ifindex);
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poetteringint manager_find_ifindex(Manager *m, int family, const union in_addr_union *in_addr);
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart PoetteringLinkAddress* manager_find_link_address(Manager *m, int family, const union in_addr_union *in_addr);
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poetteringint manager_our_packet(Manager *m, DnsPacket *p);
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart PoetteringDEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_free);
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poetteringconst char* support_to_string(Support p) _const_;
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poetteringint support_from_string(const char *s) _pure_;