diff options
author | Daniel Mack <daniel@zonque.org> | 2015-11-30 12:47:11 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-12-08 16:51:41 +0100 |
commit | 0afa57e2e7645f3a550729e4daadda419de179c5 (patch) | |
tree | af362af7fe917831d3740ac4d2c826f33d98b1d3 /src/resolve/resolved-def.h | |
parent | a9da14e1e97ff774761966c2e1d83b0c6750b367 (diff) |
resolved: implement query coalescing
Implement dns_transaction_make_packet_mdns(), a special version of
dns_transaction_make_packet() for mDNS which differs in many ways:
a) We coalesce queries of currently active transaction on the scope.
This is possible because mDNS actually allows many questions in a
to be sent in a single packet and it takes some burden from the
network.
b) Both A and AAAA query keys are broadcast on both IPv4 and IPv6
scopes, because other hosts might only respond on one of their
addresses but resolve both types.
c) We discard previously sent packages (t->sent) so we can start over
and coalesce pending transactions again.
Diffstat (limited to 'src/resolve/resolved-def.h')
0 files changed, 0 insertions, 0 deletions