resolved-dns-rr.h revision 801ad6a6a9cd8fbd58b9f9c27f20dbb3c87d47dd
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering This file is part of systemd.
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering Copyright 2014 Lennart Poettering
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering systemd is free software; you can redistribute it and/or modify it
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering under the terms of the GNU Lesser General Public License as published by
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering (at your option) any later version.
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering systemd is distributed in the hope that it will be useful, but
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering Lesser General Public License for more details.
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering You should have received a copy of the GNU Lesser General Public License
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poetteringtypedef struct DnsResourceKey DnsResourceKey;
c573dcfeb1abd390cd4c4288056df97752ef18f0Evgeny Vereshchagintypedef struct DnsResourceRecord DnsResourceRecord;
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering/* DNS record classes, see RFC 1035 */
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering char *_name; /* don't access directy, use DNS_RESOURCE_KEY_NAME()! */
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering /* https://tools.ietf.org/html/rfc4255#section-3.1 */
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering /* http://tools.ietf.org/html/rfc4034#section-2.1 */
4e731273edfe852a3eee2949cd20f49fd5b4f6d7Lennart Poettering /* http://tools.ietf.org/html/rfc4034#section-3.1 */
c573dcfeb1abd390cd4c4288056df97752ef18f0Evgeny Vereshchaginstatic inline const char* DNS_RESOURCE_KEY_NAME(const DnsResourceKey *key) {
return NULL;
DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *cname);
int dns_resource_key_match_rr(const DnsResourceKey *key, const DnsResourceRecord *rr, const char *search_domain);
int dns_resource_key_match_cname(const DnsResourceKey *key, const DnsResourceRecord *rr, const char *search_domain);
int dns_resource_record_new_reverse(DnsResourceRecord **ret, int family, const union in_addr_union *address, const char *name);
int dns_resource_record_new_address(DnsResourceRecord **ret, int family, const union in_addr_union *address, const char *name);