]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/Tcp4.h
Formalize comments for Protocols and PPIs.
[mirror_edk2.git] / MdePkg / Include / Protocol / Tcp4.h
CommitLineData
d1f95000 1/** @file\r
2 EFI TCPv4 Protocol Definition\r
3 The EFI TCPv4 Service Binding Protocol is used to locate EFI TCPv4 Protocol drivers to create\r
d01c093a 4 and destroy child of the driver to communicate with other host using TCP protocol.\r
5 The EFI TCPv4 Protocol provides services to send and receive data stream.\r
d1f95000 6\r
1a09f6f6 7 Copyright (c) 2006 - 2008, Intel Corporation\r
d01c093a 8 All rights reserved. This program and the accompanying materials\r
9 are licensed and made available under the terms and conditions of the BSD License\r
10 which accompanies this distribution. The full text of the license may be found at\r
11 http://opensource.org/licenses/bsd-license.php\r
d1f95000 12\r
d01c093a 13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
d1f95000 15\r
d1f95000 16**/\r
17\r
18#ifndef __EFI_TCP4_PROTOCOL_H__\r
19#define __EFI_TCP4_PROTOCOL_H__\r
20\r
21#include <Protocol/Ip4.h>\r
22\r
23#define EFI_TCP4_SERVICE_BINDING_PROTOCOL_GUID \\r
24 { \\r
25 0x00720665, 0x67EB, 0x4a99, {0xBA, 0xF7, 0xD3, 0xC3, 0x3A, 0x1C, 0x7C, 0xC9 } \\r
26 }\r
27\r
28#define EFI_TCP4_PROTOCOL_GUID \\r
29 { \\r
30 0x65530BC7, 0xA359, 0x410f, {0xB0, 0x10, 0x5A, 0xAD, 0xC7, 0xEC, 0x2B, 0x62 } \\r
31 }\r
32\r
33typedef struct _EFI_TCP4_PROTOCOL EFI_TCP4_PROTOCOL;\r
34\r
35typedef struct {\r
8377875b 36 EFI_HANDLE InstanceHandle;\r
d1f95000 37 EFI_IPv4_ADDRESS LocalAddress;\r
38 UINT16 LocalPort;\r
39 EFI_IPv4_ADDRESS RemoteAddress;\r
40 UINT16 RemotePort;\r
41} EFI_TCP4_SERVICE_POINT;\r
42\r
43typedef struct {\r
44 EFI_HANDLE DriverHandle;\r
45 UINT32 ServiceCount;\r
46 EFI_TCP4_SERVICE_POINT Services[1];\r
47} EFI_TCP4_VARIABLE_DATA;\r
48\r
49typedef struct {\r
50 BOOLEAN UseDefaultAddress;\r
51 EFI_IPv4_ADDRESS StationAddress;\r
52 EFI_IPv4_ADDRESS SubnetMask;\r
53 UINT16 StationPort;\r
54 EFI_IPv4_ADDRESS RemoteAddress;\r
55 UINT16 RemotePort;\r
56 BOOLEAN ActiveFlag;\r
57} EFI_TCP4_ACCESS_POINT;\r
58\r
59typedef struct {\r
d01c093a 60 UINT32 ReceiveBufferSize;\r
61 UINT32 SendBufferSize;\r
62 UINT32 MaxSynBackLog;\r
63 UINT32 ConnectionTimeout;\r
64 UINT32 DataRetries;\r
65 UINT32 FinTimeout;\r
66 UINT32 TimeWaitTimeout;\r
67 UINT32 KeepAliveProbes;\r
68 UINT32 KeepAliveTime;\r
69 UINT32 KeepAliveInterval;\r
d1f95000 70 BOOLEAN EnableNagle;\r
71 BOOLEAN EnableTimeStamp;\r
72 BOOLEAN EnableWindowScaling;\r
73 BOOLEAN EnableSelectiveAck;\r
74 BOOLEAN EnablePathMtuDiscovery;\r
75} EFI_TCP4_OPTION;\r
76\r
77typedef struct {\r
78 //\r
79 // I/O parameters\r
80 //\r
81 UINT8 TypeOfService;\r
82 UINT8 TimeToLive;\r
83\r
84 //\r
85 // Access Point\r
86 //\r
87 EFI_TCP4_ACCESS_POINT AccessPoint;\r
d01c093a 88\r
89 //\r
90 // TCP Control Options\r
91 //\r
d1f95000 92 EFI_TCP4_OPTION *ControlOption;\r
93} EFI_TCP4_CONFIG_DATA;\r
94\r
95typedef enum {\r
96 Tcp4StateClosed = 0,\r
97 Tcp4StateListen = 1,\r
98 Tcp4StateSynSent = 2,\r
99 Tcp4StateSynReceived = 3,\r
100 Tcp4StateEstablished = 4,\r
101 Tcp4StateFinWait1 = 5,\r
102 Tcp4StateFinWait2 = 6,\r
103 Tcp4StateClosing = 7,\r
104 Tcp4StateTimeWait = 8,\r
105 Tcp4StateCloseWait = 9,\r
106 Tcp4StateLastAck = 10\r
107} EFI_TCP4_CONNECTION_STATE;\r
108\r
109typedef struct {\r
110 EFI_EVENT Event;\r
111 EFI_STATUS Status;\r
112} EFI_TCP4_COMPLETION_TOKEN;\r
113\r
114typedef struct {\r
115 EFI_TCP4_COMPLETION_TOKEN CompletionToken;\r
116} EFI_TCP4_CONNECTION_TOKEN;\r
117\r
118typedef struct {\r
119 EFI_TCP4_COMPLETION_TOKEN CompletionToken;\r
120 EFI_HANDLE NewChildHandle;\r
121} EFI_TCP4_LISTEN_TOKEN;\r
122\r
123typedef struct {\r
d01c093a 124 UINT32 FragmentLength;\r
125 VOID *FragmentBuffer;\r
d1f95000 126} EFI_TCP4_FRAGMENT_DATA;\r
127\r
128typedef struct {\r
129 BOOLEAN UrgentFlag;\r
d01c093a 130 UINT32 DataLength;\r
131 UINT32 FragmentCount;\r
d1f95000 132 EFI_TCP4_FRAGMENT_DATA FragmentTable[1];\r
d01c093a 133} EFI_TCP4_RECEIVE_DATA;\r
d1f95000 134\r
d01c093a 135typedef struct {\r
d1f95000 136 BOOLEAN Push;\r
137 BOOLEAN Urgent;\r
d01c093a 138 UINT32 DataLength;\r
139 UINT32 FragmentCount;\r
d1f95000 140 EFI_TCP4_FRAGMENT_DATA FragmentTable[1];\r
141} EFI_TCP4_TRANSMIT_DATA;\r
142\r
143typedef struct {\r
144 EFI_TCP4_COMPLETION_TOKEN CompletionToken;\r
145 union {\r
146 EFI_TCP4_RECEIVE_DATA *RxData;\r
147 EFI_TCP4_TRANSMIT_DATA *TxData;\r
148 } Packet;\r
149} EFI_TCP4_IO_TOKEN;\r
150\r
151typedef struct {\r
152 EFI_TCP4_COMPLETION_TOKEN CompletionToken;\r
153 BOOLEAN AbortOnClose;\r
154} EFI_TCP4_CLOSE_TOKEN;\r
155\r
156//\r
157// Interface definition for TCP4 protocol\r
158//\r
159\r
160/**\r
161 Get the current operational status.\r
162\r
163 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
164 @param Tcp4State Pointer to the buffer to receive the current TCP state.\r
165 @param Tcp4ConfigData Pointer to the buffer to receive the current TCP configuration.\r
166 @param Ip4ModeData Pointer to the buffer to receive the current IPv4 configuration\r
167 data used by the TCPv4 instance.\r
168 @param MnpConfigData Pointer to the buffer to receive the current MNP configuration\r
169 data used indirectly by the TCPv4 instance.\r
170 @param SnpModeData Pointer to the buffer to receive the current SNP configuration\r
171 data used indirectly by the TCPv4 instance.\r
172\r
173 @retval EFI_SUCCESS The mode data was read.\r
174 @retval EFI_INVALID_PARAMETER This is NULL.\r
175 @retval EFI_NOT_STARTED No configuration data is available because this instance hasn't\r
176 been started.\r
177\r
178**/\r
179typedef\r
180EFI_STATUS\r
8b13229b 181(EFIAPI *EFI_TCP4_GET_MODE_DATA)(\r
d1f95000 182 IN CONST EFI_TCP4_PROTOCOL *This,\r
183 OUT EFI_TCP4_CONNECTION_STATE *Tcp4State OPTIONAL,\r
184 OUT EFI_TCP4_CONFIG_DATA *Tcp4ConfigData OPTIONAL,\r
185 OUT EFI_IP4_MODE_DATA *Ip4ModeData OPTIONAL,\r
186 OUT EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL,\r
187 OUT EFI_SIMPLE_NETWORK_MODE *SnpModeData OPTIONAL\r
ed66e1bc 188 );\r
d01c093a 189\r
d1f95000 190/**\r
191 Initialize or brutally reset the operational parameters for this EFI TCPv4 instance.\r
192\r
193 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
194 @param Tcp4ConfigData Pointer to the configure data to configure the instance.\r
195\r
196 @retval EFI_SUCCESS The operational settings are set, changed, or reset\r
197 successfully.\r
198 @retval EFI_INVALID_PARAMETER Some parameter is invalid.\r
199 @retval EFI_NO_MAPPING When using a default address, configuration (through\r
200 DHCP, BOOTP, RARP, etc.) is not finished yet.\r
201 @retval EFI_ACCESS_DENIED Configuring TCP instance when it is configured without\r
202 calling Configure() with NULL to reset it.\r
203 @retval EFI_DEVICE_ERROR An unexpected network or system error occurred.\r
204 @retval EFI_UNSUPPORTED One or more of the control options are not supported in\r
205 the implementation.\r
206 @retval EFI_OUT_OF_RESOURCES Could not allocate enough system resources when\r
207 executing Configure().\r
208\r
209**/\r
210typedef\r
211EFI_STATUS\r
8b13229b 212(EFIAPI *EFI_TCP4_CONFIGURE)(\r
d1f95000 213 IN EFI_TCP4_PROTOCOL *This,\r
214 IN EFI_TCP4_CONFIG_DATA *TcpConfigData OPTIONAL\r
ed66e1bc 215 );\r
d01c093a 216\r
d1f95000 217\r
218/**\r
219 Add or delete a route entry to the route table\r
220\r
221 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
222 @param DeleteRoute Set it to TRUE to delete this route from the routing table. Set it to\r
223 FALSE to add this route to the routing table.\r
224 DestinationAddress and SubnetMask are used as the\r
225 keywords to search route entry.\r
226 @param SubnetAddress The destination network.\r
227 @param SubnetMask The subnet mask of the destination network.\r
228 @param GatewayAddress The gateway address for this route. It must be on the same\r
229 subnet with the station address unless a direct route is specified.\r
230\r
231 @retval EFI_SUCCESS The operation completed successfully.\r
232 @retval EFI_NOT_STARTED The EFI TCPv4 Protocol instance has not been configured.\r
233 @retval EFI_NO_MAPPING When using a default address, configuration (DHCP, BOOTP,\r
234 RARP, etc.) is not finished yet.\r
235 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
236 - This is NULL.\r
237 - SubnetAddress is NULL.\r
238 - SubnetMask is NULL.\r
239 - GatewayAddress is NULL.\r
240 - *SubnetAddress is not NULL a valid subnet address.\r
241 - *SubnetMask is not a valid subnet mask.\r
242 - *GatewayAddress is not a valid unicast IP address or it\r
243 is not in the same subnet.\r
244 @retval EFI_OUT_OF_RESOURCES Could not allocate enough resources to add the entry to the\r
245 routing table.\r
246 @retval EFI_NOT_FOUND This route is not in the routing table.\r
247 @retval EFI_ACCESS_DENIED The route is already defined in the routing table.\r
248 @retval EFI_UNSUPPORTED The TCP driver does not support this operation.\r
249\r
250**/\r
251typedef\r
252EFI_STATUS\r
8b13229b 253(EFIAPI *EFI_TCP4_ROUTES)(\r
d1f95000 254 IN EFI_TCP4_PROTOCOL *This,\r
255 IN BOOLEAN DeleteRoute,\r
256 IN EFI_IPv4_ADDRESS *SubnetAddress,\r
257 IN EFI_IPv4_ADDRESS *SubnetMask,\r
258 IN EFI_IPv4_ADDRESS *GatewayAddress\r
ed66e1bc 259 );\r
d1f95000 260\r
261/**\r
262 Initiate a nonblocking TCP connection request for an active TCP instance.\r
263\r
264 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
265 @param ConnectionToken Pointer to the connection token to return when the TCP three\r
266 way handshake finishes.\r
d01c093a 267\r
d1f95000 268 @retval EFI_SUCCESS The connection request is successfully initiated and the state\r
269 - of this TCPv4 instance has been changed to\r
270 - Tcp4StateSynSent.\r
271 @retval EFI_NOT_STARTED This EFI TCPv4 Protocol instance has not been configured.\r
272 @retval EFI_ACCESS_DENIED One or more of the following conditions are TRUE:\r
273 - This instance is not configured as an active one.\r
274 - This instance is not in Tcp4StateClosed state.\r
275 @retval EFI_INVALID_PARAMETER One or more of the following are TRUE:\r
276 - This is NULL.\r
277 - ConnectionToken is NULL.\r
278 - ConnectionToken->CompletionToken.Event is NULL.\r
279 @retval EFI_OUT_OF_RESOURCES The driver can't allocate enough resource to initiate the activeopen.\r
280 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
281\r
282**/\r
283typedef\r
284EFI_STATUS\r
8b13229b 285(EFIAPI *EFI_TCP4_CONNECT)(\r
d1f95000 286 IN EFI_TCP4_PROTOCOL *This,\r
287 IN EFI_TCP4_CONNECTION_TOKEN *ConnectionToken\r
ed66e1bc 288 );\r
d01c093a 289\r
d1f95000 290\r
291/**\r
292 Listen on the passive instance to accept an incoming connection request. This is a nonblocking operation.\r
293\r
294 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
295 @param ListenToken Pointer to the listen token to return when operation finishes.\r
296\r
297 @retval EFI_SUCCESS The listen token has been queued successfully.\r
298 @retval EFI_NOT_STARTED This EFI TCPv4 Protocol instance has not been configured.\r
299 @retval EFI_ACCESS_DENIED One or more of the following are TRUE:\r
300 - This instance is not a passive instance.\r
301 - This instance is not in Tcp4StateListen state.\r
302 - The same listen token has already existed in the listen\r
303 token queue of this TCP instance.\r
304 @retval EFI_INVALID_PARAMETER One or more of the following are TRUE:\r
305 - This is NULL.\r
306 - ListenToken is NULL.\r
307 - ListentToken->CompletionToken.Event is NULL.\r
308 @retval EFI_OUT_OF_RESOURCES Could not allocate enough resource to finish the operation.\r
309 @retval EFI_DEVICE_ERROR Any unexpected and not belonged to above category error.\r
310\r
311**/\r
312typedef\r
313EFI_STATUS\r
8b13229b 314(EFIAPI *EFI_TCP4_ACCEPT)(\r
d1f95000 315 IN EFI_TCP4_PROTOCOL *This,\r
316 IN EFI_TCP4_LISTEN_TOKEN *ListenToken\r
ed66e1bc 317 );\r
d1f95000 318\r
319/**\r
320 Queues outgoing data into the transmit queue.\r
321\r
322 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
323 @param Token Pointer to the completion token to queue to the transmit queue.\r
324\r
325 @retval EFI_SUCCESS The data has been queued for transmission.\r
326 @retval EFI_NOT_STARTED This EFI TCPv4 Protocol instance has not been configured.\r
327 @retval EFI_NO_MAPPING When using a default address, configuration (DHCP, BOOTP,\r
328 RARP, etc.) is not finished yet.\r
329 @retval EFI_INVALID_PARAMETER One or more of the following are TRUE:\r
330 - This is NULL.\r
331 - Token is NULL.\r
332 - Token->CompletionToken.Event is NULL.\r
333 - Token->Packet.TxData is NULL L.\r
334 - Token->Packet.FragmentCount is zero.\r
335 - Token->Packet.DataLength is not equal to the sum of fragment lengths.\r
336 @retval EFI_ACCESS_DENIED One or more of the following conditions is TRUE:\r
337 - A transmit completion token with the same Token->CompletionToken.Event\r
338 was already in the transmission queue.\r
339 - The current instance is in Tcp4StateClosed state.\r
340 - The current instance is a passive one and it is in\r
341 Tcp4StateListen state.\r
342 - User has called Close() to disconnect this connection.\r
343 @retval EFI_NOT_READY The completion token could not be queued because the\r
344 transmit queue is full.\r
345 @retval EFI_OUT_OF_RESOURCES Could not queue the transmit data because of resource\r
346 shortage.\r
347 @retval EFI_NETWORK_UNREACHABLE There is no route to the destination network or address.\r
348\r
349**/\r
350typedef\r
351EFI_STATUS\r
8b13229b 352(EFIAPI *EFI_TCP4_TRANSMIT)(\r
d1f95000 353 IN EFI_TCP4_PROTOCOL *This,\r
354 IN EFI_TCP4_IO_TOKEN *Token\r
ed66e1bc 355 );\r
d1f95000 356\r
357\r
358/**\r
359 Places an asynchronous receive request into the receiving queue.\r
360\r
361 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
362 @param Token Pointer to a token that is associated with the receive data\r
363 descriptor.\r
364\r
365 @retval EFI_SUCCESS The receive completion token was cached.\r
366 @retval EFI_NOT_STARTED This EFI TCPv4 Protocol instance has not been configured.\r
367 @retval EFI_NO_MAPPING When using a default address, configuration (DHCP, BOOTP, RARP,\r
368 etc.) is not finished yet.\r
369 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
370 - This is NULL.\r
371 - Token is NULL.\r
372 - Token->CompletionToken.Event is NULL.\r
373 - Token->Packet.RxData is NULL.\r
374 - Token->Packet.RxData->DataLength is 0.\r
375 - The Token->Packet.RxData->DataLength is not\r
376 the sum of all FragmentBuffer length in FragmentTable.\r
377 @retval EFI_OUT_OF_RESOURCES The receive completion token could not be queued due to a lack of\r
378 system resources (usually memory).\r
379 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
380 @retval EFI_ACCESS_DENIED One or more of the following conditions is TRUE:\r
381 - A receive completion token with the same Token-\r
382 >CompletionToken.Event was already in the receive\r
383 queue.\r
384 - The current instance is in Tcp4StateClosed state.\r
385 - The current instance is a passive one and it is in\r
386 Tcp4StateListen state.\r
387 - User has called Close() to disconnect this connection.\r
388 @retval EFI_CONNECTION_FIN The communication peer has closed the connection and there is\r
389 no any buffered data in the receive buffer of this instance.\r
390 @retval EFI_NOT_READY The receive request could not be queued because the receive queue is full.\r
391\r
392**/\r
393typedef\r
394EFI_STATUS\r
8b13229b 395(EFIAPI *EFI_TCP4_RECEIVE)(\r
d1f95000 396 IN EFI_TCP4_PROTOCOL *This,\r
397 IN EFI_TCP4_IO_TOKEN *Token\r
ed66e1bc 398 );\r
d01c093a 399\r
d1f95000 400/**\r
401 Disconnecting a TCP connection gracefully or reset a TCP connection. This function is a\r
d01c093a 402 nonblocking operation.\r
d1f95000 403\r
404 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
405 @param CloseToken Pointer to the close token to return when operation finishes.\r
406\r
407 @retval EFI_SUCCESS The Close() is called successfully.\r
408 @retval EFI_NOT_STARTED This EFI TCPv4 Protocol instance has not been configured.\r
409 @retval EFI_ACCESS_DENIED One or more of the following are TRUE:\r
410 - Configure() has been called with\r
411 TcpConfigData set to NULL and this function has\r
412 not returned.\r
413 - Previous Close() call on this instance has not\r
414 finished.\r
415 @retval EFI_INVALID_PARAMETER One or more of the following are TRUE:\r
416 - This is NULL.\r
417 - CloseToken is NULL.\r
418 - CloseToken->CompletionToken.Event is NULL.\r
419 @retval EFI_OUT_OF_RESOURCES Could not allocate enough resource to finish the operation.\r
420 @retval EFI_DEVICE_ERROR Any unexpected and not belonged to above category error.\r
421\r
422**/\r
423typedef\r
424EFI_STATUS\r
8b13229b 425(EFIAPI *EFI_TCP4_CLOSE)(\r
d1f95000 426 IN EFI_TCP4_PROTOCOL *This,\r
427 IN EFI_TCP4_CLOSE_TOKEN *CloseToken\r
ed66e1bc 428 );\r
d1f95000 429\r
430/**\r
431 Abort an asynchronous connection, listen, transmission or receive request.\r
432\r
433 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
434 @param Token Pointer to a token that has been issued by\r
435 EFI_TCP4_PROTOCOL.Connect(),\r
436 EFI_TCP4_PROTOCOL.Accept(),\r
437 EFI_TCP4_PROTOCOL.Transmit() or\r
438 EFI_TCP4_PROTOCOL.Receive(). If NULL, all pending\r
439 tokens issued by above four functions will be aborted. Type\r
440 EFI_TCP4_COMPLETION_TOKEN is defined in\r
441 EFI_TCP4_PROTOCOL.Connect().\r
442\r
443 @retval EFI_SUCCESS Incoming or outgoing data was processed.\r
444 @retval EFI_INVALID_PARAMETER This is NULL.\r
445 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
446 @retval EFI_NOT_READY No incoming or outgoing data is processed.\r
447 @retval EFI_TIMEOUT Data was dropped out of the transmission or receive queue.\r
448 Consider increasing the polling rate.\r
449\r
450**/\r
451typedef\r
452EFI_STATUS\r
8b13229b 453(EFIAPI *EFI_TCP4_CANCEL)(\r
d1f95000 454 IN EFI_TCP4_PROTOCOL *This,\r
455 IN EFI_TCP4_COMPLETION_TOKEN *Token OPTIONAL\r
ed66e1bc 456 );\r
d1f95000 457\r
458\r
459/**\r
460 Poll to receive incoming data and transmit outgoing segments.\r
461\r
462 @param This Pointer to the EFI_TCP4_PROTOCOL instance.\r
463\r
464 @retval EFI_SUCCESS Incoming or outgoing data was processed.\r
465 @retval EFI_INVALID_PARAMETER This is NULL.\r
466 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
467 @retval EFI_NOT_READY No incoming or outgoing data is processed.\r
468 @retval EFI_TIMEOUT Data was dropped out of the transmission or receive queue.\r
469 Consider increasing the polling rate.\r
470\r
471**/\r
472typedef\r
473EFI_STATUS\r
8b13229b 474(EFIAPI *EFI_TCP4_POLL)(\r
d1f95000 475 IN EFI_TCP4_PROTOCOL *This\r
ed66e1bc 476 );\r
d1f95000 477\r
44717a39 478///\r
479/// The EFI_TCP4_PROTOCOL defines the EFI TCPv4 Protocol child to be used by \r
480/// any network drivers or applications to send or receive data stream. \r
481/// It can either listen on a specified port as a service or actively connected \r
482/// to remote peer as a client. Each instance has its own independent settings, \r
483/// such as the routing table.\r
484///\r
d1f95000 485struct _EFI_TCP4_PROTOCOL {\r
486 EFI_TCP4_GET_MODE_DATA GetModeData;\r
487 EFI_TCP4_CONFIGURE Configure;\r
488 EFI_TCP4_ROUTES Routes;\r
489 EFI_TCP4_CONNECT Connect;\r
490 EFI_TCP4_ACCEPT Accept;\r
491 EFI_TCP4_TRANSMIT Transmit;\r
492 EFI_TCP4_RECEIVE Receive;\r
493 EFI_TCP4_CLOSE Close;\r
494 EFI_TCP4_CANCEL Cancel;\r
495 EFI_TCP4_POLL Poll;\r
496};\r
497\r
498#define EFI_CONNECTION_FIN EFIERR (104)\r
499#define EFI_CONNECTION_RESET EFIERR (105)\r
500#define EFI_CONNECTION_REFUSED EFIERR (106)\r
501\r
502extern EFI_GUID gEfiTcp4ServiceBindingProtocolGuid;\r
503extern EFI_GUID gEfiTcp4ProtocolGuid;\r
504\r
505#endif\r