]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Library/UdpIoLib.h
Change library class PlatDriOverLib to PlatformDriOverrideLib
[mirror_edk2.git] / MdeModulePkg / Include / Library / UdpIoLib.h
index f8ffa444edaa479712a344c38837b5cc1a20b764..820b8f2b1bd64e04d40583a7248c52229ef634cf 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
-  The helper routines to access UDP service. It is used by both\r
-  DHCP and MTFTP.\r
+  Ihis library is only intended to be used by UEFI network stack modules.\r
+  It provides the helper routines to access UDP service. It is used by both DHCP and MTFTP.\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
@@ -169,6 +169,26 @@ BOOLEAN
   IN VOID                   *Context\r
   );\r
 \r
+/**\r
+  Cancel all the sent datagram that pass the selection criteria of ToCancel.\r
+  If ToCancel is NULL, all the datagrams are cancelled.\r
+\r
+  @param[in]  UdpIo                 The UDP_IO_PORT to cancel packet.\r
+  @param[in]  IoStatus              The IoStatus to return to the packet owners.\r
+  @param[in]  ToCancel              The select funtion to test whether to cancel this\r
+                                    packet or not.\r
+  @param[in]  Context               The opaque parameter to the ToCancel.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+UdpIoCancelDgrams (\r
+  IN UDP_IO_PORT            *UdpIo,\r
+  IN EFI_STATUS             IoStatus,\r
+  IN UDP_IO_TO_CANCEL       ToCancel,        OPTIONAL\r
+  IN VOID                   *Context\r
+  );\r
+\r
 /**\r
   Create a UDP_IO_PORT to access the UDP service. It will create and configure\r
   a UDP child.\r