diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-30 00:48:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-30 00:48:59 +0200 |
commit | af93291cc4cbd2fe2fb4af7d3c56138fb39f31dc (patch) | |
tree | 18600359a8412751275aa86b607f0b35c21e0b3a /src/resolve/resolved-dns-scope.c | |
parent | 2442b93d15f5523aba0c5dc56a42757af889c483 (diff) |
resolved: when answer A or AAAA questions, order responses by whether addresses are link-local or not
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index b975ac4092..b17de0c88f 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -483,6 +483,8 @@ void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p) { if (r == 0) return; + dns_answer_order_by_scope(answer, in_addr_is_link_local(p->family, &p->sender) > 0); + r = dns_scope_make_reply_packet(s, DNS_PACKET_ID(p), DNS_RCODE_SUCCESS, p->question, answer, &reply); if (r < 0) { log_debug("Failed to build reply packet: %s", strerror(-r)); |