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
This commit is contained in:
niry
2008-11-28 08:32:24 +00:00
parent 34ffd1bbb5
commit 85511ddf72
13 changed files with 224 additions and 116 deletions

View File

@@ -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.