mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Update TCP to last release versions in preparation for kernel V10.3.0 release.
This commit is contained in:
		
							parent
							
								
									7bea399061
								
							
						
					
					
						commit
						8e5addee1e
					
				@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,8 @@
 | 
			
		||||
Changes between 180821 and TBD.
 | 
			
		||||
	Currently FreeRTOS+TCP files under this directory have version number "2.2.x Labs copy". 
 | 
			
		||||
	Please be aware that the projects under FreeRTOS-Labs are experimental and in working 
 | 
			
		||||
	progress. 
 | 
			
		||||
 | 
			
		||||
Changes between 160919 and 180821 releases:
 | 
			
		||||
 | 
			
		||||
	+ Multiple security improvements and fixes in packet parsing routines, DNS
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * FreeRTOS+TCP V2.2.0
 | 
			
		||||
 * FreeRTOS+TCP 2.2.x Labs copy
 | 
			
		||||
 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 | 
			
		||||
 | 
			
		||||
@ -84,9 +84,9 @@
 | 
			
		||||
 | 
			
		||||
/* Offsets into the transmitted DHCP options fields at which various parameters
 | 
			
		||||
are located. */
 | 
			
		||||
#define dhcpCLIENT_IDENTIFIER_OFFSET			( 6 )
 | 
			
		||||
#define dhcpREQUESTED_IP_ADDRESS_OFFSET			( 14 )
 | 
			
		||||
#define dhcpDHCP_SERVER_IP_ADDRESS_OFFSET		( 20 )
 | 
			
		||||
#define dhcpCLIENT_IDENTIFIER_OFFSET			( 5 )
 | 
			
		||||
#define dhcpREQUESTED_IP_ADDRESS_OFFSET			( 13 )
 | 
			
		||||
#define dhcpDHCP_SERVER_IP_ADDRESS_OFFSET		( 19 )
 | 
			
		||||
 | 
			
		||||
/* Values used in the DHCP packets. */
 | 
			
		||||
#define dhcpREQUEST_OPCODE						( 1 )
 | 
			
		||||
@ -905,7 +905,7 @@ static const uint8_t ucDHCPRequestOptions[] =
 | 
			
		||||
	dhcpCLIENT_IDENTIFIER_OFFSET, dhcpREQUESTED_IP_ADDRESS_OFFSET and
 | 
			
		||||
	dhcpDHCP_SERVER_IP_ADDRESS_OFFSET. */
 | 
			
		||||
	dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_REQUEST,		/* Message type option. */
 | 
			
		||||
	dhcpCLIENT_IDENTIFIER_OPTION_CODE, 7, 1, 0, 0, 0, 0, 0, 0,			/* Client identifier. */
 | 
			
		||||
	dhcpCLIENT_IDENTIFIER_OPTION_CODE, 6, 0, 0, 0, 0, 0, 0,			/* Client identifier. */
 | 
			
		||||
	dhcpREQUEST_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0,				/* The IP address being requested. */
 | 
			
		||||
	dhcpSERVER_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0,				/* The IP address of the DHCP server. */
 | 
			
		||||
	dhcpOPTION_END_BYTE
 | 
			
		||||
@ -943,7 +943,7 @@ static const uint8_t ucDHCPDiscoverOptions[] =
 | 
			
		||||
{
 | 
			
		||||
	/* Do not change the ordering without also changing dhcpCLIENT_IDENTIFIER_OFFSET. */
 | 
			
		||||
	dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_DISCOVER,					/* Message type option. */
 | 
			
		||||
	dhcpCLIENT_IDENTIFIER_OPTION_CODE, 7, 1, 0, 0, 0, 0, 0, 0,						/* Client identifier. */
 | 
			
		||||
	dhcpCLIENT_IDENTIFIER_OPTION_CODE, 6, 0, 0, 0, 0, 0, 0,						/* Client identifier. */
 | 
			
		||||
	dhcpPARAMETER_REQUEST_OPTION_CODE, 3, dhcpSUBNET_MASK_OPTION_CODE, dhcpGATEWAY_OPTION_CODE, dhcpDNS_SERVER_OPTIONS_CODE,	/* Parameter request option. */
 | 
			
		||||
	dhcpOPTION_END_BYTE
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -280,8 +280,7 @@ UDPPacket_t *pxUDPPacket = (UDPPacket_t *) pxNetworkBuffer->pucEthernetBuffer;
 | 
			
		||||
				destinationAddress.sin_port = usPort;
 | 
			
		||||
				destinationAddress.sin_addr = pxUDPPacket->xIPHeader.ulDestinationIPAddress;
 | 
			
		||||
 | 
			
		||||
				/* The value of 'xDataLength' was proven to be at least the size of a UDP packet in prvProcessIPPacket(). */
 | 
			
		||||
				if( xHandler( ( Socket_t ) pxSocket, ( void* ) pcData, ( size_t ) ( pxNetworkBuffer->xDataLength - ipUDP_PAYLOAD_OFFSET_IPv4 ),
 | 
			
		||||
				if( xHandler( ( Socket_t ) pxSocket, ( void* ) pcData, ( size_t ) pxNetworkBuffer->xDataLength,
 | 
			
		||||
					&xSourceAddress, &destinationAddress ) )
 | 
			
		||||
				{
 | 
			
		||||
					xReturn = pdFAIL; /* FAIL means that we did not consume or release the buffer */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user