/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
support.c\r
- \r
+\r
Abstract:\r
Miscellaneous support routines for PxeDhcp4 protocol.\r
\r
op_flags := UDP receive operation flags\r
\r
Returns:\r
- EFI_INVALID_PARAMETER := \r
+ EFI_INVALID_PARAMETER :=\r
EFI_SUCCESS := Packet received\r
other := Return from PxeBc->UdpRead()\r
--*/\r
SecondsTimeout := Number of seconds until timeout\r
\r
Returns:\r
- EFI_INVALID_PARAMETER := Private == NULL || ServerIp == NULL || \r
+ EFI_INVALID_PARAMETER := Private == NULL || ServerIp == NULL ||\r
tx_pkt == NULL || rx_pkt == NULL || rx_vfy == NULL || Private->PxeBc == NULL\r
EFI_ABORTED := Receive aborted\r
EFI_TIMEOUT := No packets received\r
//\r
// Wait for packet(s)...\r
//\r
-#if 0\r
- if (!client_ip) {\r
- Aprint ("client_ip == NULL ");\r
- } else {\r
- Aprint (\r
- "client_ip == %d.%d.%d.%d ",\r
- client_ip->v4.Addr[0],\r
- client_ip->v4.Addr[1],\r
- client_ip->v4.Addr[2],\r
- client_ip->v4.Addr[3]\r
- );\r
- }\r
-\r
- if (!ServerIp) {\r
- Aprint ("ServerIp == NULL\n");\r
- } else {\r
- Aprint (\r
- "ServerIp == %d.%d.%d.%d\n",\r
- ServerIp->v4.Addr[0],\r
- ServerIp->v4.Addr[1],\r
- ServerIp->v4.Addr[2],\r
- ServerIp->v4.Addr[3]\r
- );\r
- }\r
-#endif\r
\r
done_flag = FALSE;\r
got_packet = FALSE;\r