dns: handle multiple replies for single requests 98/21398/1
authorDave Barach <dave@barachs.net>
Mon, 19 Aug 2019 22:15:51 +0000 (18:15 -0400)
committerDave Barach <dave@barachs.net>
Mon, 19 Aug 2019 22:23:35 +0000 (18:23 -0400)
commite8d2dcb6a619f0884ece2284a286f21b3aa77e5a
treeb0c4b3d6013331f4fa4ed9dca59c918cbf52bc70
parentdee4c2e40333580a5a8817ed217807db48224399
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
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I3175a40eb1fea237048d16b852a430f5ab51eaef
MAINTAINERS
src/vnet/dns/dns.c
src/vnet/dns/dns.h
src/vnet/dns/resolver_process.c