From 6a0ce6674a6ebad2c0a88dab30fa8c1aeaced617 Mon Sep 17 00:00:00 2001 From: Monika Singh Date: Mon, 24 Jul 2023 00:02:54 +0530 Subject: [PATCH] Fixes mDNS over IPv6 (#977) * Add more descriptions of ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM (#947) * Fixes mDNS over IPv6. (#949) Co-authored-by: Emil Popov Co-authored-by: ActoryOu Co-authored-by: Monika Singh --------- Co-authored-by: ActoryOu Co-authored-by: Emil Popov Co-authored-by: Emil Popov --- source/FreeRTOS_UDP_IPv6.c | 10 ++++++++++ source/include/FreeRTOSIPConfigDefaults.h | 6 +++++- test/Coverity/ConfigFiles/FreeRTOSIPConfig.h | 4 ++-- test/build-combination/AllDisable/FreeRTOSIPConfig.h | 4 ++-- test/build-combination/AllEnable/FreeRTOSIPConfig.h | 4 ++-- test/build-combination/Enable_IPv4/FreeRTOSIPConfig.h | 4 ++-- .../Enable_IPv4_IPv6/FreeRTOSIPConfig.h | 4 ++-- .../Enable_IPv4_TCP/FreeRTOSIPConfig.h | 4 ++-- test/build-combination/Enable_IPv6/FreeRTOSIPConfig.h | 4 ++-- .../Enable_IPv6_TCP/FreeRTOSIPConfig.h | 4 ++-- test/cbmc/patches/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/ConfigFiles/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_DHCPv6/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_DNS/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_DNS_ConfigNoCallback/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_DNS_Parser/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_IP_DiffConfig/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_IP_DiffConfig1/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_IP_DiffConfig2/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_IP_DiffConfig3/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_IP_Utils/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_IP_Utils_DiffConfig/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_IPv4_DiffConfig/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_IPv4_DiffConfig1/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_IPv6/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_IPv6_Utils/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_Routing/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_Routing_ConfigV4Only/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_Sockets_DiffConfig/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_Sockets_DiffConfig1/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_Sockets_DiffConfig2/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOS_TCP_IP_DiffConfig/FreeRTOSIPConfig.h | 4 ++-- .../FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_Tiny_TCP/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_UDP_IPv4/FreeRTOSIPConfig.h | 4 ++-- test/unit-test/FreeRTOS_UDP_IPv6/FreeRTOSIPConfig.h | 4 ++-- 39 files changed, 89 insertions(+), 75 deletions(-) diff --git a/source/FreeRTOS_UDP_IPv6.c b/source/FreeRTOS_UDP_IPv6.c index d41d1eb3b..712de1266 100644 --- a/source/FreeRTOS_UDP_IPv6.c +++ b/source/FreeRTOS_UDP_IPv6.c @@ -608,6 +608,16 @@ BaseType_t xProcessReceivedUDPPacket_IPv6( NetworkBufferDescriptor_t * pxNetwork else #endif /* ipconfigUSE_LLMNR */ + #if ( ipconfigUSE_DNS == 1 ) && ( ipconfigUSE_MDNS == 1 ) + /* A MDNS request, check for the destination port. */ + if( ( usPort == FreeRTOS_ntohs( ipMDNS_PORT ) ) || + ( pxUDPPacket_IPv6->xUDPHeader.usSourcePort == FreeRTOS_ntohs( ipMDNS_PORT ) ) ) + { + xReturn = ( BaseType_t ) ulDNSHandlePacket( pxNetworkBuffer ); + } + else + #endif /* ipconfigUSE_MDNS */ + #if ( ipconfigUSE_NBNS == 1 ) /* a NetBIOS request, check for the destination port */ if( ( usPort == FreeRTOS_htons( ipNBNS_PORT ) ) || diff --git a/source/include/FreeRTOSIPConfigDefaults.h b/source/include/FreeRTOSIPConfigDefaults.h index bcd2f9eb0..27a081141 100644 --- a/source/include/FreeRTOSIPConfigDefaults.h +++ b/source/include/FreeRTOSIPConfigDefaults.h @@ -978,7 +978,11 @@ /* When ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM is enabled, * the network interface is responsible for checking the checksums - * of the incoming packets. + * of the incoming packets. If hardware supports checking TCP checksum only, + * the network interface layer should handle the same for other protocols, + * such as IP/UDP/ICMP/etc, and give the checksum verified packets to the + * FreeRTOS-plus-TCP stack. + * * This can be either done in hardware, or by calling the checksum * functions. */ diff --git a/test/Coverity/ConfigFiles/FreeRTOSIPConfig.h b/test/Coverity/ConfigFiles/FreeRTOSIPConfig.h index 2ca50ecca..962a3ee1b 100644 --- a/test/Coverity/ConfigFiles/FreeRTOSIPConfig.h +++ b/test/Coverity/ConfigFiles/FreeRTOSIPConfig.h @@ -59,8 +59,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/build-combination/AllDisable/FreeRTOSIPConfig.h b/test/build-combination/AllDisable/FreeRTOSIPConfig.h index 5825cf8a5..09bb6b6c5 100644 --- a/test/build-combination/AllDisable/FreeRTOSIPConfig.h +++ b/test/build-combination/AllDisable/FreeRTOSIPConfig.h @@ -55,8 +55,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/build-combination/AllEnable/FreeRTOSIPConfig.h b/test/build-combination/AllEnable/FreeRTOSIPConfig.h index 4e7833bca..4f89b7383 100644 --- a/test/build-combination/AllEnable/FreeRTOSIPConfig.h +++ b/test/build-combination/AllEnable/FreeRTOSIPConfig.h @@ -78,8 +78,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/build-combination/Enable_IPv4/FreeRTOSIPConfig.h b/test/build-combination/Enable_IPv4/FreeRTOSIPConfig.h index 404980254..4cdbc3e83 100644 --- a/test/build-combination/Enable_IPv4/FreeRTOSIPConfig.h +++ b/test/build-combination/Enable_IPv4/FreeRTOSIPConfig.h @@ -82,8 +82,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/build-combination/Enable_IPv4_IPv6/FreeRTOSIPConfig.h b/test/build-combination/Enable_IPv4_IPv6/FreeRTOSIPConfig.h index d10de8039..84a53f428 100644 --- a/test/build-combination/Enable_IPv4_IPv6/FreeRTOSIPConfig.h +++ b/test/build-combination/Enable_IPv4_IPv6/FreeRTOSIPConfig.h @@ -82,8 +82,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/build-combination/Enable_IPv4_TCP/FreeRTOSIPConfig.h b/test/build-combination/Enable_IPv4_TCP/FreeRTOSIPConfig.h index 5c431f96f..9687ca502 100644 --- a/test/build-combination/Enable_IPv4_TCP/FreeRTOSIPConfig.h +++ b/test/build-combination/Enable_IPv4_TCP/FreeRTOSIPConfig.h @@ -82,8 +82,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/build-combination/Enable_IPv6/FreeRTOSIPConfig.h b/test/build-combination/Enable_IPv6/FreeRTOSIPConfig.h index 5af4482cf..72e2eea04 100644 --- a/test/build-combination/Enable_IPv6/FreeRTOSIPConfig.h +++ b/test/build-combination/Enable_IPv6/FreeRTOSIPConfig.h @@ -82,8 +82,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/build-combination/Enable_IPv6_TCP/FreeRTOSIPConfig.h b/test/build-combination/Enable_IPv6_TCP/FreeRTOSIPConfig.h index d6d9a8b14..49b49e0a5 100644 --- a/test/build-combination/Enable_IPv6_TCP/FreeRTOSIPConfig.h +++ b/test/build-combination/Enable_IPv6_TCP/FreeRTOSIPConfig.h @@ -82,8 +82,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/cbmc/patches/FreeRTOSIPConfig.h b/test/cbmc/patches/FreeRTOSIPConfig.h index 449cc89f4..004922bcb 100644 --- a/test/cbmc/patches/FreeRTOSIPConfig.h +++ b/test/cbmc/patches/FreeRTOSIPConfig.h @@ -57,8 +57,8 @@ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN #endif -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/ConfigFiles/FreeRTOSIPConfig.h b/test/unit-test/ConfigFiles/FreeRTOSIPConfig.h index 2e9482dd2..3f6473a7c 100644 --- a/test/unit-test/ConfigFiles/FreeRTOSIPConfig.h +++ b/test/unit-test/ConfigFiles/FreeRTOSIPConfig.h @@ -64,8 +64,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_ARP_DataLenLessThanMinPacket/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_ARP_DataLenLessThanMinPacket/FreeRTOSIPConfig.h index 976c0b844..ed07f90ef 100644 --- a/test/unit-test/FreeRTOS_ARP_DataLenLessThanMinPacket/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_ARP_DataLenLessThanMinPacket/FreeRTOSIPConfig.h @@ -57,8 +57,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_DHCPv6/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_DHCPv6/FreeRTOSIPConfig.h index 4f40cfc2c..fb1b85e4c 100644 --- a/test/unit-test/FreeRTOS_DHCPv6/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_DHCPv6/FreeRTOSIPConfig.h @@ -63,8 +63,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_DNS/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_DNS/FreeRTOSIPConfig.h index 049dbd49b..eee2e487e 100644 --- a/test/unit-test/FreeRTOS_DNS/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_DNS/FreeRTOSIPConfig.h @@ -64,8 +64,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_DNS_ConfigNoCallback/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_DNS_ConfigNoCallback/FreeRTOSIPConfig.h index 6fc527d71..d9deab1dc 100644 --- a/test/unit-test/FreeRTOS_DNS_ConfigNoCallback/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_DNS_ConfigNoCallback/FreeRTOSIPConfig.h @@ -64,8 +64,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_DNS_Parser/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_DNS_Parser/FreeRTOSIPConfig.h index 57ebee996..32adf4497 100644 --- a/test/unit-test/FreeRTOS_DNS_Parser/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_DNS_Parser/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ #define FreeRTOS_htons( usIn ) ( ( uint16_t ) ( ( ( usIn ) << 8U ) | ( ( usIn ) >> 8U ) ) ) -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_IP_DiffConfig/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IP_DiffConfig/FreeRTOSIPConfig.h index d2e1c1bd7..f86a2816b 100644 --- a/test/unit-test/FreeRTOS_IP_DiffConfig/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IP_DiffConfig/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_IP_DiffConfig1/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IP_DiffConfig1/FreeRTOSIPConfig.h index 28b34a29f..54cc01dac 100644 --- a/test/unit-test/FreeRTOS_IP_DiffConfig1/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IP_DiffConfig1/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_IP_DiffConfig2/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IP_DiffConfig2/FreeRTOSIPConfig.h index 4d03abf28..a4b4420b2 100644 --- a/test/unit-test/FreeRTOS_IP_DiffConfig2/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IP_DiffConfig2/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_IP_DiffConfig3/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IP_DiffConfig3/FreeRTOSIPConfig.h index b0e5b9e90..59a2ee392 100644 --- a/test/unit-test/FreeRTOS_IP_DiffConfig3/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IP_DiffConfig3/FreeRTOSIPConfig.h @@ -63,8 +63,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_IP_Utils/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IP_Utils/FreeRTOSIPConfig.h index 9c181d585..2e1bb6655 100644 --- a/test/unit-test/FreeRTOS_IP_Utils/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IP_Utils/FreeRTOSIPConfig.h @@ -63,8 +63,8 @@ #define FreeRTOS_htons( usIn ) ( ( uint16_t ) ( ( ( usIn ) << 8U ) | ( ( usIn ) >> 8U ) ) ) -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_IP_Utils_DiffConfig/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IP_Utils_DiffConfig/FreeRTOSIPConfig.h index 4b9d9e4ad..9133238cd 100644 --- a/test/unit-test/FreeRTOS_IP_Utils_DiffConfig/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IP_Utils_DiffConfig/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_IPv4_DiffConfig/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IPv4_DiffConfig/FreeRTOSIPConfig.h index 3877e1802..a19e99b3e 100644 --- a/test/unit-test/FreeRTOS_IPv4_DiffConfig/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IPv4_DiffConfig/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_IPv4_DiffConfig1/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IPv4_DiffConfig1/FreeRTOSIPConfig.h index c27c380b7..754635509 100644 --- a/test/unit-test/FreeRTOS_IPv4_DiffConfig1/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IPv4_DiffConfig1/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_IPv6/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IPv6/FreeRTOSIPConfig.h index 408876d28..ca776333e 100644 --- a/test/unit-test/FreeRTOS_IPv6/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IPv6/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_IPv6_ConfigDriverCheckChecksum/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IPv6_ConfigDriverCheckChecksum/FreeRTOSIPConfig.h index 42908762e..eccdaf572 100644 --- a/test/unit-test/FreeRTOS_IPv6_ConfigDriverCheckChecksum/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IPv6_ConfigDriverCheckChecksum/FreeRTOSIPConfig.h @@ -61,8 +61,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_IPv6_Utils/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_IPv6_Utils/FreeRTOSIPConfig.h index efce72a02..3d64170c4 100644 --- a/test/unit-test/FreeRTOS_IPv6_Utils/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_IPv6_Utils/FreeRTOSIPConfig.h @@ -59,8 +59,8 @@ #define FreeRTOS_htons( usIn ) ( ( uint16_t ) ( ( ( usIn ) << 8U ) | ( ( usIn ) >> 8U ) ) ) -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_Routing/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_Routing/FreeRTOSIPConfig.h index f831c4303..217e9e7c5 100644 --- a/test/unit-test/FreeRTOS_Routing/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_Routing/FreeRTOSIPConfig.h @@ -65,8 +65,8 @@ #define FreeRTOS_htons( usIn ) ( ( uint16_t ) ( ( ( usIn ) << 8U ) | ( ( usIn ) >> 8U ) ) ) -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_Routing_ConfigCompatibleWithSingle/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_Routing_ConfigCompatibleWithSingle/FreeRTOSIPConfig.h index 174ad03dc..e7275a487 100644 --- a/test/unit-test/FreeRTOS_Routing_ConfigCompatibleWithSingle/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_Routing_ConfigCompatibleWithSingle/FreeRTOSIPConfig.h @@ -69,8 +69,8 @@ #define FreeRTOS_htons( usIn ) ( ( uint16_t ) ( ( ( usIn ) << 8U ) | ( ( usIn ) >> 8U ) ) ) -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_Routing_ConfigV4Only/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_Routing_ConfigV4Only/FreeRTOSIPConfig.h index cfcdc500f..53fde60a2 100644 --- a/test/unit-test/FreeRTOS_Routing_ConfigV4Only/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_Routing_ConfigV4Only/FreeRTOSIPConfig.h @@ -73,8 +73,8 @@ #define FreeRTOS_htons( usIn ) ( ( uint16_t ) ( ( ( usIn ) << 8U ) | ( ( usIn ) >> 8U ) ) ) -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_Sockets_DiffConfig/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_Sockets_DiffConfig/FreeRTOSIPConfig.h index cdd6ace0a..7554f8464 100644 --- a/test/unit-test/FreeRTOS_Sockets_DiffConfig/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_Sockets_DiffConfig/FreeRTOSIPConfig.h @@ -57,8 +57,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_Sockets_DiffConfig1/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_Sockets_DiffConfig1/FreeRTOSIPConfig.h index 718ed9fe3..0936cb2e1 100644 --- a/test/unit-test/FreeRTOS_Sockets_DiffConfig1/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_Sockets_DiffConfig1/FreeRTOSIPConfig.h @@ -59,8 +59,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_Sockets_DiffConfig2/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_Sockets_DiffConfig2/FreeRTOSIPConfig.h index 3de1a0161..42e7a66f5 100644 --- a/test/unit-test/FreeRTOS_Sockets_DiffConfig2/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_Sockets_DiffConfig2/FreeRTOSIPConfig.h @@ -59,8 +59,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_TCP_IP_DiffConfig/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_TCP_IP_DiffConfig/FreeRTOSIPConfig.h index bcdd9c6bc..30ea5521f 100644 --- a/test/unit-test/FreeRTOS_TCP_IP_DiffConfig/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_TCP_IP_DiffConfig/FreeRTOSIPConfig.h @@ -57,8 +57,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_TCP_Utils_IPV6_ConfigLowTCPMSS/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_TCP_Utils_IPV6_ConfigLowTCPMSS/FreeRTOSIPConfig.h index 1ee53135c..3fa50b426 100644 --- a/test/unit-test/FreeRTOS_TCP_Utils_IPV6_ConfigLowTCPMSS/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_TCP_Utils_IPV6_ConfigLowTCPMSS/FreeRTOSIPConfig.h @@ -60,8 +60,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_Tiny_TCP/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_Tiny_TCP/FreeRTOSIPConfig.h index fafd30262..50d80f5b7 100644 --- a/test/unit-test/FreeRTOS_Tiny_TCP/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_Tiny_TCP/FreeRTOSIPConfig.h @@ -59,8 +59,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 0 diff --git a/test/unit-test/FreeRTOS_UDP_IPv4/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_UDP_IPv4/FreeRTOSIPConfig.h index 049dbd49b..eee2e487e 100644 --- a/test/unit-test/FreeRTOS_UDP_IPv4/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_UDP_IPv4/FreeRTOSIPConfig.h @@ -64,8 +64,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 diff --git a/test/unit-test/FreeRTOS_UDP_IPv6/FreeRTOSIPConfig.h b/test/unit-test/FreeRTOS_UDP_IPv6/FreeRTOSIPConfig.h index 9579f6193..85969a9b3 100644 --- a/test/unit-test/FreeRTOS_UDP_IPv6/FreeRTOSIPConfig.h +++ b/test/unit-test/FreeRTOS_UDP_IPv6/FreeRTOSIPConfig.h @@ -63,8 +63,8 @@ * on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) - * then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +/* If the network card/driver includes checksum offloading then set + * ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software * stack repeating the checksum calculations. */ #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1