mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
resolved: show all answer flags when dumping answer
This commit is contained in:
parent
032b398224
commit
5cdcac6cf6
@ -714,7 +714,7 @@ void dns_answer_dump(DnsAnswer *answer, FILE *f) {
|
|||||||
|
|
||||||
fputs(t, f);
|
fputs(t, f);
|
||||||
|
|
||||||
if (ifindex != 0 || flags & (DNS_ANSWER_AUTHENTICATED|DNS_ANSWER_CACHEABLE|DNS_ANSWER_SHARED_OWNER))
|
if (ifindex != 0 || flags != 0)
|
||||||
fputs("\t;", f);
|
fputs("\t;", f);
|
||||||
|
|
||||||
if (ifindex != 0)
|
if (ifindex != 0)
|
||||||
@ -725,6 +725,10 @@ void dns_answer_dump(DnsAnswer *answer, FILE *f) {
|
|||||||
fputs(" cacheable", f);
|
fputs(" cacheable", f);
|
||||||
if (flags & DNS_ANSWER_SHARED_OWNER)
|
if (flags & DNS_ANSWER_SHARED_OWNER)
|
||||||
fputs(" shared-owner", f);
|
fputs(" shared-owner", f);
|
||||||
|
if (flags & DNS_ANSWER_CACHE_FLUSH)
|
||||||
|
fputs(" cache-flush", f);
|
||||||
|
if (flags & DNS_ANSWER_GOODBYE)
|
||||||
|
fputs(" goodbye", f);
|
||||||
|
|
||||||
fputc('\n', f);
|
fputc('\n', f);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user