]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/DnsDxe: Fix zero StationIp configuration failure of DNSv6
authorJiaxin Wu <jiaxin.wu@intel.com>
Thu, 23 Mar 2017 03:35:14 +0000 (11:35 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Thu, 30 Mar 2017 03:31:47 +0000 (11:31 +0800)
commiteed4585ba5915733a88fbb69d565c5e3247753f2
tree28ed0400fbaa62ac75e09d7ffad7aa8010c271d2
parent6e7ec25aaaf0dfc2b4c84ffd4c7ee7cd442aecb6
NetworkPkg/DnsDxe: Fix zero StationIp configuration failure of DNSv6

According UEFI Spec, set to zero StationIp means to let the underlying
IPv6 driver choose a source address. But currently, DNSv6 always return
EFI_NO_MAPPING. The issue is caused by below bugs in DnsDxe:
* Incorrect TPL(TPL_CALLBACK) usage during UDP configuration.
* Failed to create the timer used to get IPv6 mapping
* Doesn't check the Ip6Mode.IsStarted flag.

Cc: Zhang Lubo <lubo.zhang@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Zhang Lubo <lubo.zhang@intel.com>
NetworkPkg/DnsDxe/DnsDriver.c
NetworkPkg/DnsDxe/DnsImpl.c
NetworkPkg/DnsDxe/DnsProtocol.c