Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 0a92ac8802704d7281ff7b9bc00ec4f893c3ece2
      
https://github.com/tianocore/edk2/commit/0a92ac8802704d7281ff7b9bc00ec4f893c3ece2
  Author: Jiaxin Wu <jiaxin...@intel.com>
  Date:   2016-09-20 (Tue, 20 Sep 2016)

  Changed paths:
    M NetworkPkg/DnsDxe/DnsImpl.c

  Log Message:
  -----------
  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.he...@hpe.com>
Cc: Fu Siyuan <siyuan...@intel.com>
Cc: Ye Ting <ting...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin...@intel.com>
Tested-by: Hegde Nagaraj P <nagaraj-p.he...@hpe.com>
Reviewed-by: Sriram Subramanian <srira...@hpe.com>


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to