]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: move DNS class utilities to dns-type.c and add more helpers
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 17:53:11 +0000 (18:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 17:53:11 +0000 (18:53 +0100)
commit4b548ef382007e40bd8fb3affdce9f843d0d63ac
tree99c7a85840e1b83f1aec40b6194ef7a4981182ed
parent3e92a71901960ad9af15ced891d529b2d8ef3c90
resolved: move DNS class utilities to dns-type.c and add more helpers

Let's make DNS class helpers more like DNS type helpers, let's move them
from resolved-dns-rr.[ch] into dns-type.[ch].

This also adds two new calls dns_class_is_pseudo() and
dns_class_is_valid_rr() which operate similar to dns_type_is_pseudo()
and dns_type_is_valid_rr() but for classes instead of types.

This should hopefully make handling of DNS classes and DNS types more
alike.
src/resolve-host/resolve-host.c
src/resolve/dns-type.c
src/resolve/dns-type.h
src/resolve/resolved-dns-rr.c
src/resolve/resolved-dns-rr.h