diff options
author | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-28 08:32:24 +0000 |
---|---|---|
committer | niry <niry@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-28 08:32:24 +0000 |
commit | 85511ddf725b72cd46d301e4baa7d437521bafb1 (patch) | |
tree | 262995543f7a4c6531753c8de288aea0f9e8d48d /MdeModulePkg/Universal/Network/Tcp4Dxe/Socket.h | |
parent | 34ffd1bbb555857aefcfe93ab0d19719706ceec7 (diff) | |
download | edk2-platforms-85511ddf725b72cd46d301e4baa7d437521bafb1.tar.xz |
Fix coding style issues for Tcp4Dxe driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6774 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Tcp4Dxe/Socket.h')
-rw-r--r-- | MdeModulePkg/Universal/Network/Tcp4Dxe/Socket.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Socket.h b/MdeModulePkg/Universal/Network/Tcp4Dxe/Socket.h index 0e987109d0..4ee8e6c39e 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Socket.h +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Socket.h @@ -344,6 +344,14 @@ typedef struct _SOCK_INIT_DATA { EFI_HANDLE DriverBinding; // the driver binding handle
} SOCK_INIT_DATA;
+
+//
+//the union type of TCP and UDP protocol
+//
+typedef union {
+ EFI_TCP4_PROTOCOL TcpProtocol;
+ EFI_UDP4_PROTOCOL UdpProtocol;
+} NET_PROTOCOL;
//
// the socket structure representing a network service access point
//
@@ -391,10 +399,7 @@ struct _SOCKET { //
SOCK_PROTO_HANDLER ProtoHandler; // the request handler of protocol
UINT8 ProtoReserved[PROTO_RESERVED_LEN]; // Data fields reserved for protocol
- union {
- EFI_TCP4_PROTOCOL TcpProtocol;
- EFI_UDP4_PROTOCOL UdpProtocol;
- } NetProtocol;
+ NET_PROTOCOL NetProtocol;
//
// Callbacks.
|