summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h
diff options
context:
space:
mode:
authorjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 14:30:46 +0000
committerjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 14:30:46 +0000
commited729a0c3ce024651d616437d85b15194e9cb6ba (patch)
tree63da4c87ebf2709c4021b164831a8d30770da4db /MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h
parent83bcb6613facbba8bcca87834a78110e2660aab9 (diff)
downloadedk2-ed729a0c3ce024651d616437d85b15194e9cb6ba.zip
edk2-ed729a0c3ce024651d616437d85b15194e9cb6ba.tar.gz
edk2-ed729a0c3ce024651d616437d85b15194e9cb6ba.tar.bz2
synced function header
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6615 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h')
-rw-r--r--MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h
index fe62e55..74d84b3 100644
--- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h
+++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.h
@@ -239,13 +239,13 @@ EFI_STATUS
@param Context The opaque parameter for Check
@retval EFI_SUCCESS The DHCP packet's options are well formated
- @retval Others The DHCP packet's options are not well formated
+ @retval EFI_INVALID_PARAMETER The DHCP packet's options are not well formated
**/
EFI_STATUS
DhcpIterateOptions (
IN EFI_DHCP4_PACKET *Packet,
- IN DHCP_CHECK_OPTION Check, OPTIONAL
+ IN DHCP_CHECK_OPTION Check, OPTIONAL
IN VOID *Context
);
@@ -264,7 +264,7 @@ DhcpIterateOptions (
EFI_STATUS
DhcpValidateOptions (
IN EFI_DHCP4_PACKET *Packet,
- OUT DHCP_PARAMETER **Para OPTIONAL
+ OUT DHCP_PARAMETER **Para OPTIONAL
);
/**
@@ -277,7 +277,7 @@ DhcpValidateOptions (
as a UINT8. It then iterates the DHCP packet to get data length of
each option by calling DhcpIterOptions with DhcpGetOptionLen. Now, it
knows the number of present options and their length. It allocates a
- array of DHCP_OPTION and a continous buffer after the array to put
+ array of DHCP_OPTION and a continuous buffer after the array to put
all the options' data. Each option's data is pointed to by the Data
field in DHCP_OPTION structure. At last, it call DhcpIterateOptions
with DhcpFillOption to fill each option's data to its position in the
@@ -315,10 +315,10 @@ DhcpParseOption (
**/
UINT8 *
DhcpAppendOption (
- IN UINT8 *Buf,
- IN UINT8 Tag,
- IN UINT16 DataLen,
- IN UINT8 *Data
+ OUT UINT8 *Buf,
+ IN UINT8 Tag,
+ IN UINT16 DataLen,
+ IN UINT8 *Data
);
/**
@@ -334,17 +334,18 @@ DhcpAppendOption (
function.
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory
+ @retval EFI_INVALID_PARAMETER The options in SeekPacket are mal-formated
@retval EFI_SUCCESS The packet is build.
**/
EFI_STATUS
DhcpBuild (
- IN EFI_DHCP4_PACKET *SeedPacket,
- IN UINT32 DeleteCount,
- IN UINT8 *DeleteList OPTIONAL,
- IN UINT32 AppendCount,
- IN EFI_DHCP4_PACKET_OPTION *AppendList[] OPTIONAL,
- OUT EFI_DHCP4_PACKET **NewPacket
+ IN EFI_DHCP4_PACKET *SeedPacket,
+ IN UINT32 DeleteCount,
+ IN UINT8 *DeleteList OPTIONAL,
+ IN UINT32 AppendCount,
+ IN EFI_DHCP4_PACKET_OPTION *AppendList[] OPTIONAL,
+ OUT EFI_DHCP4_PACKET **NewPacket
);
#endif