]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Support classless IP for DHCPv4 TransmitReceive()
authorJiaxin Wu <jiaxin.wu@intel.com>
Thu, 18 Aug 2016 05:31:07 +0000 (13:31 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Tue, 6 Sep 2016 11:00:00 +0000 (19:00 +0800)
commit8c5f78a2cc15199e3f77ae4b156023af366fd6c7
tree8eeb15b115c177218077577a0524451db99d5dc2
parent29be616014578ad68eddd0f03c9fa4bf553d7d4d
MdeModulePkg: Support classless IP for DHCPv4 TransmitReceive()

The IP address should not be treated as classful one if DHCP options
contain a classless IP with its true subnet mask. Otherwise, DHCPv4
TransmitReceive() will failed. This real subnet mask will be parsed
and recorded in DhcpSb->Netmask. So, we need check it before get the
IP's corresponding subnet mask.

Cc: Santhapur Naveen <naveens@amiindia.co.in>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Impl.c