History log of /device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a35dc6499beb0b76c340379a06dff74a8d38095a 16-Dec-2016 Fu Siyuan <siyuan.fu@intel.com> NetworkPkg: Replace ASSERT with error return code in PXE and HTTP boot driver.

This patch remove the ASSERT when receive a DHCP packet large than the maximum
cache buffer size.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
632dcfd6857b6211ce3fe9755d3c11e74ef5d447 16-Nov-2016 Fu Siyuan <siyuan.fu@intel.com> NetworkPkg: Check for the max DHCP packet length before use it.

This patch updates the PXE and HTTP boot driver to drop the input DHCP packet
if it exceed the maximum length.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
142c00c3d659a6d5d66416385b4c93fd9a9f10e6 22-Jun-2016 Zhang Lubo <lubo.zhang@intel.com> NetworkPkg: Refine codes related to Dhcpv4 and Dhcpv6 configuration.

v2:
*Since we have redefined the name of arch types in Dhcp.h for http boot,
it need to change corresponding codes.

Add a new head file Dhcp.h in Mde/Include/IndustryStandard, normalize the
universal option numbers and other network number tags.

Cc: Sriram Subramanian <sriram-s@hpe.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
aa437778fcbcce7ec86414b0f72ad9aa4df03d53 03-May-2016 Fu Siyuan <siyuan.fu@intel.com> NetworkPkg: Ignore BootFileName if it is overloaded.

Make sure "File" field is not overloaded to carry other DHCP options before use
it in PXE driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
ac99793b73a7856f06edcb63a23bf1518febb347 29-Jul-2015 Zhang Lubo <lubo.zhang@intel.com> NetworkPkg: Fix the issue cannot boot to UEFI Network after reset

DHCP4 service allows only one of its children to be configured
in the active state,If the DHCP4 D.O.R.A started by IP4 auto
configuration and has not been completed, the Dhcp4 state machine
will not be in the right state for the PXE to start a new round D.O.R.A.
so we need to switch it's policy to static.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18104 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
61047329990eb414657ab85c38d028b37eb576c4 26-Jul-2015 Zhang Lubo <lubo.zhang@intel.com> NetworkPkg: Fix the issue EfiPxeBcDhcp() may return wrong status.

if the instance of the EFI DHCP4 protocol driver is in the Dhcp4Bound status
that is DHCP configuration has completed, so the Dhcp4->Start FUNC in
the PxeBcDhcpDora() will return EFI_ALREADY_STARTED status which lead to
EfiPxeBcDhcp FUNC not in correspondence with UEFI spec.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
[lersek@redhat.com: updated copyright year as requested by Siyuan]
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18049 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
ae97201c55603b69289c5d2349238ea97b2cd35e 18-Sep-2014 Fu, Siyuan <siyuan.fu@intel.com> 1. Update PXE driver to support PXEv6 boot cross subnet.
2. Update IP6 driver to use previous configured prefix length if a pre-exist IP6 address with unspecified prefix length.
3. Add NULL check for Dhcp protocol pointer before it decline the address in Ip6ConfigSetStatefulAddrCallback() function.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu, Siyuan <siyuan.fu@intel.com>
Reviewed-By: Ye, Ting (ting.ye@intel.com)
Reviewed-By: Wu, Jiaxin <jiaxin.wu@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16131 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
0e7f6f50cc7b05a0f6ec541ddce34211794d9c08 23-Apr-2014 Mauro Faccenda <faccenda@gmail.com> Fix typo in function name PxeBcFlushStaionIp which should be PxeBcFlushStationIp.
Signed-off-by: Mauro Faccenda <faccenda@gmail.com>
Reviewed-by: Ye, Ting <ting.ye@intel.com>
Reviewed-by: Fu, Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15480 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
8cb92971e491cddd59b74eb24bf403c97d37cab1 13-Jan-2014 Fu Siyuan <siyuan.fu@intel.com> 1. Update the parsing logic of DHCP message in PXE driver.
2. Append null terminated character at the end of option 67.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Reviewed-by: Jin, Eric <eric.jin@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15099 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
75dce340624dba5e4a79b2e5b2dbe943bae0d0e9 17-Oct-2012 sfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524> 1. Fix a bug in PXE driver that the PXE boot do not restart if a new boot option on the different IP stack is selected.
2. Retrieve the IP information after iSCSI TCPv6 connection established and fill it into iBFT table.
3. Generate a random IAID for each NIC port to require different IPv6 address in PXE driver.
4. Update function EfiMtftp6Configure() and Mtftp6RrqHandleOack() to allocate at most one UdpIo.
5. Fix a typo from “destory” to “destroy” in network code.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13859 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
9063c328dff827ef9deb1ce0dde75112c496e072 24-Aug-2012 sfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524> Fix bugs in PXE driver when using option 43 for boot server list and boot menu prompt.

Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Ouyang Qian <qian.ouyang@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13676 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
4496ff751f7843fbbedf91f1a58212eb7c9a1ca8 24-Aug-2011 hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> 1. Refine the error handling when the PXE-v4 DHCP offer isn't valid

Signed-off-by: hhuan13
Reviewed-by: xdu2

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12192 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
19ddbb25872eb727e1751fb842f0f5948a0b3aa7 14-Jul-2011 hhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524> 1. Update NetworkPkg\PXE driver to consume netlib library function NetLibGetSystemGuid()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12019 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
a3bcde70e6dc69000f85cc5deee98101d2ae200a 01-Nov-2010 hhtian <hhtian@6f19259b-4bc3-4df7-8a09-765794883524> Add NetworkPkg (P.UDK2010.UP3.Network.P1)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10986 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c