From a1503a32a887c0b9a735613a7caf5d1493affd01 Mon Sep 17 00:00:00 2001 From: tye Date: Wed, 11 Nov 2009 07:06:27 +0000 Subject: 1. Add Link MTU support to IP4 and TCP4 driver. 2. Integrate IPsec functionality to IP4 driver. 3. Move IP_VERSION_4/IP_VERSION_6 definition from IpIoLib to NetLib. 4. Move the Ip6/Udp6 protocol declaration from driver INF to Library INF (DxeIpIoLib and DxeUdpIoLib) for better readability. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9413 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf | 4 +--- MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'MdeModulePkg/Universal/Network/Tcp4Dxe') diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf index c298f2d..ba1274d 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf @@ -2,7 +2,7 @@ # Component name for module Tcp4 # # FIX ME! -# Copyright (c) 2006 - 2009, Intel Corporation. +# Copyright (c) 2006, Intel Corporation. # # All rights reserved. This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -77,6 +77,4 @@ gEfiTcp4ServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiIp4ServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiTcp4ProtocolGuid # PROTOCOL ALWAYS_CONSUMED - gEfiIp6ProtocolGuid # PROTOCOL ALWAYS_CONSUMED - gEfiIp6ServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c index ce66231..f565d2f 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c @@ -471,7 +471,7 @@ TcpGetRcvMss ( IN SOCKET *Sock ) { - EFI_SIMPLE_NETWORK_MODE SnpMode; + EFI_IP4_MODE_DATA Ip4Mode; TCP4_PROTO_DATA *TcpProto; EFI_IP4_PROTOCOL *Ip; @@ -481,9 +481,9 @@ TcpGetRcvMss ( Ip = (EFI_IP4_PROTOCOL *) (TcpProto->TcpService->IpIo->Ip); ASSERT (Ip != NULL); - Ip->GetModeData (Ip, NULL, NULL, &SnpMode); + Ip->GetModeData (Ip, &Ip4Mode, NULL, NULL); - return (UINT16) (SnpMode.MaxPacketSize - 40); + return (UINT16) (Ip4Mode.MaxPacketSize - sizeof (TCP_HEAD)); } -- cgit v1.1