]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-packet.c
resolved: when parsing DNS packets, handle OPT RR specially
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Dec 2015 16:43:24 +0000 (17:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Dec 2015 10:35:52 +0000 (11:35 +0100)
commitd75acfb059ece4512278b8820a9103664996f1e5
tree6c030e51969b64b87d991eed9a799817651750a1
parentc296dd2eea308e9ef73eb81f31e9eeaa32c30895
resolved: when parsing DNS packets, handle OPT RR specially

As soon as we encounter the OPT RR while parsing, store it in a special
field in the DnsPacket structure. That way, we won't be confused if we
iterate through RRs, and can check that there's really only one of these
RRs around.
src/resolve/resolved-dns-packet.c
src/resolve/resolved-dns-packet.h
src/resolve/resolved-dns-rr.h