audk/NetworkPkg/DnsDxe
Jiaxin Wu 0a92ac8802 NetworkPkg: Correct the DNS token return status by RCODE
When HostNameToIp() and GeneralLookUp() are called with a invalid
host name, RCODE (4 bit field is set as part of responses) error
will returned in packet to identify the domain name referenced in
the query does not exist. So, EFI_NOT_FOUND should be returned
directly.

Current implementation only check the RCODE in successful condition.
Need update the code for more error check according to RFC 1035 4.1.1
section.

Cc: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Tested-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
2016-09-20 09:12:20 +08:00
..
ComponentName.c NetworkPkg:Fix Network memory leak when calling GetModeData interface 2016-01-28 02:32:43 +00:00
DnsDhcp.c NetworkPkg: Revert git 'eb213f2f' fix 2016-03-02 15:43:55 +08:00
DnsDhcp.h NetworkPkg: Add DNS feature support over IPv4 and IPv6. 2015-07-07 08:22:03 +00:00
DnsDriver.c NetworkPkg: Fix typos in comments 2016-07-11 10:29:50 +08:00
DnsDriver.h NetworkPkg: Fix typos in comments 2016-07-11 10:29:50 +08:00
DnsDxe.inf NetworkPkg: Revert git 'eb213f2f' fix 2016-03-02 15:43:55 +08:00
DnsDxe.uni NetworkPkg: Convert all .uni files to utf-8 2015-12-15 04:56:57 +00:00
DnsDxeExtra.uni NetworkPkg: Convert all .uni files to utf-8 2015-12-15 04:56:57 +00:00
DnsImpl.c NetworkPkg: Correct the DNS token return status by RCODE 2016-09-20 09:12:20 +08:00
DnsImpl.h NetworkPkg: Fix DNS GeneralLookUp failure in some case 2016-06-13 13:26:31 +08:00
DnsProtocol.c NetworkPkg: Replace ASSERT with error handling in DnsDxe 2016-06-21 12:56:28 +08:00