dns: handle multiple replies for single requests 10/21410/2
authorDave Barach <[email protected]>
Mon, 19 Aug 2019 22:15:51 +0000 (18:15 -0400)
committerDave Barach <[email protected]>
Tue, 20 Aug 2019 12:48:52 +0000 (12:48 +0000)
commit14c7756ad8867ca96300ad0f38b89f24ee19dff6
tree53852b75418e63b51b18acfcd7d30737f8ec7759
parentb610f2022c9f4e10a922e7b57c80ec77cd45d021
dns: handle multiple replies for single requests

The world is a mess. A single DNS request may yield multiple, subtly
different responses; all with the same DNS protocol-level ID.

Last response wins in terms of what ends up in the cache.

First response wins in terms of the response sent to the client. Hard
to do otherwise since we have no clue that more than one answer will
be forthcoming.

Type: fix
Ticket: VPP-1749
Signed-off-by: Dave Barach <[email protected]>
Change-Id: I3175a40eb1fea237048d16b852a430f5ab51eaef
(cherry picked from commit e8d2dcb6a619f0884ece2284a286f21b3aa77e5a)
MAINTAINERS
src/vnet/dns/dns.c
src/vnet/dns/dns.h
src/vnet/dns/resolver_process.c