Eugene,
For this problem, I would prefer using UEFI defined dhcp callback method to
achieve the platform policy of 'select first offer' or any other policy. And
using dhcp callback mechanism, you have opportunity to do more dhcp-packet
validation to guarantee the first received option is actually correct one.
Currently, both IPv4 and IPv6 already support this mechanism.
For DHCPv4,
In MdeModulePkg\Universal\Network\Dhcp4Dxe\Dhcp4Io.c,
DhcpHandleSelect() will invoke callback function (Dhcp4Event = Dhcp4RcvdOffer)
when a DHCP offer is received.
DhcpChooseOffer() will invoke callback function (Dhcp4Event = Dhcp4SelectOffer)
to see if user wants to select a special offer.
For DHCPv6,
In NetworkPkg\Dhcp6Dxe\Dhcp6Io.c
Dhcp6HandleAdvertiseMsg() and Dhcp6SelectAdvertiseMsg() do the same thing as v4.
Thanks,
Ruth
From: Cohen, Eugene [mailto:[email protected]]<mailto:[mailto:[email protected]]>
Sent: Friday, September 14, 2012 4:18 AM
To: [email protected]<mailto:[email protected]>
Subject: [edk2] DHCP Fast Mode Patch
Dear MdeModulePkg Maintainer,
The attached patch adds a boolean PCD value to change the behavior of the
Dhcpv4 driver to enable it to select the first offer received. I found that
this can resolve issues in some network environments where there is an
expectation for clients to select the first offer (despite the fact that the
RFCs do not require this). This could have been implemented using DHCP
callbacks but this approach provides a more compact solution (3 lines of code).
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen [email protected]<mailto:[email protected]>
Thanks,
Eugene
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel