X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FInclude%2FLibrary%2FNetLib.h;h=102d7f1413844ef52bad68eb35e8d36fb9fa6507;hp=3700105fb811489630ace5972f843e07338ed391;hb=0677cc4925d580f7016ac092dc591be0ebe03495;hpb=cd5ebaa06dca3e6ef3c464081e6defe00d358c69 diff --git a/MdeModulePkg/Include/Library/NetLib.h b/MdeModulePkg/Include/Library/NetLib.h index 3700105fb8..102d7f1413 100644 --- a/MdeModulePkg/Include/Library/NetLib.h +++ b/MdeModulePkg/Include/Library/NetLib.h @@ -19,6 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include +#include typedef UINT32 IP4_ADDR; typedef UINT32 TCP_SEQNO; @@ -51,6 +52,7 @@ typedef UINT16 TCP_PORTNO; #define IP6_HOP_BY_HOP 0 #define IP6_DESTINATION 60 +#define IP6_ROUTING 43 #define IP6_FRAGMENT 44 #define IP6_AH 51 #define IP6_ESP 50 @@ -2002,4 +2004,20 @@ NetIp6PseudoHeadChecksum ( IN UINT8 NextHeader, IN UINT32 Len ); + +/** + The function frees the net buffer which allocated by the IP protocol. It releases + only the net buffer and doesn't call the external free function. + + This function should be called after finishing the process of mIpSec->ProcessExt() + for outbound traffic. The (EFI_IPSEC2_PROTOCOL)->ProcessExt() allocates a new + buffer for the ESP, so there needs a function to free the old net buffer. + + @param[in] Nbuf The network buffer to be freed. + +**/ +VOID +NetIpSecNetbufFree ( + NET_BUF *Nbuf + ); #endif