dnsresolv: compare returned name; "better" CNAME handling
authorH. Peter Anvin <hpa@zytor.com>
Mon, 24 Aug 2009 23:32:48 +0000 (16:32 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 24 Aug 2009 23:32:48 +0000 (16:32 -0700)
commit94eca0c06e03a9d50be4e7de06b3a79af8f47083
treef51eb003104907a2eba75ce5c5c4030fd55283e1
parent6b1a837bf5794bee3a2a3e1733bea321d12a89ad
dnsresolv: compare returned name; "better" CNAME handling

Compare the returned name with the name we requested.  Handle CNAMEs
by overwriting the requested name with the CNAME, however, we really
should:

a) rescan the packet from the beginning;
b) send a new request if we get no A record for the CNAME.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/pxe/dnsresolv.c