]> git.sur5r.net Git - freertos/commitdiff
Update TCP to last release versions in preparation for kernel V10.3.0 release.
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Feb 2020 22:45:37 +0000 (22:45 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Feb 2020 22:45:37 +0000 (22:45 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2818 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

27 files changed:
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_Stream_Buffer.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_IP.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/History.txt
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOSIPConfigDefaults.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_ARP.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DHCP.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DNS.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP_Private.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Sockets.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Stream_Buffer.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_IP.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_WIN.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_UDP_IP.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_errno_TCP.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/IPTraceMacroDefaults.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/NetworkBufferManagement.h
FreeRTOS-Labs/Source/FreeRTOS-Plus-TCP/include/NetworkInterface.h
FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c
FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c

index c98a7e8703653d7d616713cf2f543a68419f403a..bf82a18b9e1fe48bc7c7c7a87c9c9b6061541421 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 9180426dfa8d94f6cd21e064ded1711d9817dbbd..cbd2b7d7247d60c62fbdc1a84c46ea1c9560e7bb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 43b246d26dd9be2d5aba76625fa103621dbed623..0ee9e870ffa826197beaa6571fe71ef6f3c94e23 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index c94f55dd74d5ecdd829f090f21a822194551c9d8..443aa9227a2a4eb70abae7cb86dcc82b90b5ea7e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index e15834849ef2dd590f8671223d17e3d639a13dc8..bbccb780d19e46159bff8b939b25b2e36ecfea54 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 53a5c69c689584e7226fb53794f539522067d817..e7693ad0dcf9187bd6c4ceebea07688eea6fed87 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index d26756589d64b65f6c459e028417063d6e02094a..22e7bec7add0fb8c719d5fe341031f879a5a0213 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index cda8acd1cea63bc755ede7e0ee4e223ab5a901d7..bfa63004266ef051040472534daab8757c0f2a70 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index c8de69790f469edec6043da26c6e8926824fb5e9..fa4136517c148a2745e984a6c3a0912526131524 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 52565cc86b814329943427fbd6882b79f0e85d90..70d8e0b5af17ddb1a9da4a9d4ebcf457ab9b1b89 100644 (file)
@@ -1,3 +1,8 @@
+Changes between 180821 and TBD.\r
+       Currently FreeRTOS+TCP files under this directory have version number "2.2.x Labs copy". \r
+       Please be aware that the projects under FreeRTOS-Labs are experimental and in working \r
+       progress. \r
+\r
 Changes between 160919 and 180821 releases:\r
 \r
        + Multiple security improvements and fixes in packet parsing routines, DNS\r
 Changes between 160919 and 180821 releases:\r
 \r
        + Multiple security improvements and fixes in packet parsing routines, DNS\r
index 20cdf739fb3cde50e33e55adea988aa781fb9f7e..94d40542dce9aad1947bae44bbb05ab534df8f1b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 166bf3a97b654250ae3bda152534f1648dde0123..42ef41affb1210f1095c4c651b169b5bd724f2ed 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 6a6d372b6923f72417e41abef1878724317565a4..13b3821bdf4587805b2d64882791f152ab657e9e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 449fa514fd3d5a2229d5eb562423979cefdb4742..0494358a20893c897ace672bc55eab172c8a507e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 6bfb4ad423fab695f959f3a4bfa30251310a9a6d..f66400f32d63194697c9914e1fc79c9c819003a0 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 8604abed05a7030da1f59af9c5f9d8b9444337f1..ce5bf8858f8c4232bfb272961037644802ef1493 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 88d3bba651225c932624199d3d4b09215386d82d..0d5a75823a006f05001170ed32fbccbe87f58b58 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 95bbbdf0a80198e8c05045108036ae2f775c2810..e69f4de22d3293b5c765f5759e01b4e95a5a7d40 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 76738c4600d51d9b7650ffd7f2b3710b05db6b99..28a4001bc3bf0ca69e1567cf4af49ce51e7b9fa1 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 9532fd159887cac0d220dff23203398f516202f9..9daa5f97d132ab61b929686e4d3d015bf8ee6c93 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index a7463fceefb229e53a6e80018c89d984e9c765aa..4ed078ffe95467133fee05a72c09e4216fcd5c5b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 534f5261d3dfa089e28cbf0c6531288012a85d92..21e36e4121c54779a390de32fdb5254c1d8f0beb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 316e18f5631fe0860095ecfb5fc19fb1f62fe0c9..8cc7fa9c9ff32a70dd97917094a5a084f3d55e2f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 0fcde3439ed0fd7ebb2846a7966b2982790217ed..6a79cc3271d554f7496a82169cacd71915c8be7a 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index c3d3fb4bcb06f2995434d94779a84fb11ba9bf5a..4d452a0bd6fafd4b2ec6e1239aacdcd35cc479c6 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
 /*\r
- * FreeRTOS+TCP V2.2.0\r
+ * FreeRTOS+TCP 2.2.x Labs copy\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
index 9180426dfa8d94f6cd21e064ded1711d9817dbbd..8871d6563990607693bcf2f52932f197ff4f7cdb 100644 (file)
@@ -84,9 +84,9 @@
 \r
 /* Offsets into the transmitted DHCP options fields at which various parameters\r
 are located. */\r
 \r
 /* Offsets into the transmitted DHCP options fields at which various parameters\r
 are located. */\r
-#define dhcpCLIENT_IDENTIFIER_OFFSET                   ( 6 )\r
-#define dhcpREQUESTED_IP_ADDRESS_OFFSET                        ( 14 )\r
-#define dhcpDHCP_SERVER_IP_ADDRESS_OFFSET              ( 20 )\r
+#define dhcpCLIENT_IDENTIFIER_OFFSET                   ( 5 )\r
+#define dhcpREQUESTED_IP_ADDRESS_OFFSET                        ( 13 )\r
+#define dhcpDHCP_SERVER_IP_ADDRESS_OFFSET              ( 19 )\r
 \r
 /* Values used in the DHCP packets. */\r
 #define dhcpREQUEST_OPCODE                                             ( 1 )\r
 \r
 /* Values used in the DHCP packets. */\r
 #define dhcpREQUEST_OPCODE                                             ( 1 )\r
@@ -905,7 +905,7 @@ static const uint8_t ucDHCPRequestOptions[] =
        dhcpCLIENT_IDENTIFIER_OFFSET, dhcpREQUESTED_IP_ADDRESS_OFFSET and\r
        dhcpDHCP_SERVER_IP_ADDRESS_OFFSET. */\r
        dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_REQUEST,              /* Message type option. */\r
        dhcpCLIENT_IDENTIFIER_OFFSET, dhcpREQUESTED_IP_ADDRESS_OFFSET and\r
        dhcpDHCP_SERVER_IP_ADDRESS_OFFSET. */\r
        dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_REQUEST,              /* Message type option. */\r
-       dhcpCLIENT_IDENTIFIER_OPTION_CODE, 7, 1, 0, 0, 0, 0, 0, 0,                      /* Client identifier. */\r
+       dhcpCLIENT_IDENTIFIER_OPTION_CODE, 6, 0, 0, 0, 0, 0, 0,                 /* Client identifier. */\r
        dhcpREQUEST_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0,                              /* The IP address being requested. */\r
        dhcpSERVER_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0,                               /* The IP address of the DHCP server. */\r
        dhcpOPTION_END_BYTE\r
        dhcpREQUEST_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0,                              /* The IP address being requested. */\r
        dhcpSERVER_IP_ADDRESS_OPTION_CODE, 4, 0, 0, 0, 0,                               /* The IP address of the DHCP server. */\r
        dhcpOPTION_END_BYTE\r
@@ -943,7 +943,7 @@ static const uint8_t ucDHCPDiscoverOptions[] =
 {\r
        /* Do not change the ordering without also changing dhcpCLIENT_IDENTIFIER_OFFSET. */\r
        dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_DISCOVER,                                     /* Message type option. */\r
 {\r
        /* Do not change the ordering without also changing dhcpCLIENT_IDENTIFIER_OFFSET. */\r
        dhcpMESSAGE_TYPE_OPTION_CODE, 1, dhcpMESSAGE_TYPE_DISCOVER,                                     /* Message type option. */\r
-       dhcpCLIENT_IDENTIFIER_OPTION_CODE, 7, 1, 0, 0, 0, 0, 0, 0,                                              /* Client identifier. */\r
+       dhcpCLIENT_IDENTIFIER_OPTION_CODE, 6, 0, 0, 0, 0, 0, 0,                                         /* Client identifier. */\r
        dhcpPARAMETER_REQUEST_OPTION_CODE, 3, dhcpSUBNET_MASK_OPTION_CODE, dhcpGATEWAY_OPTION_CODE, dhcpDNS_SERVER_OPTIONS_CODE,        /* Parameter request option. */\r
        dhcpOPTION_END_BYTE\r
 };\r
        dhcpPARAMETER_REQUEST_OPTION_CODE, 3, dhcpSUBNET_MASK_OPTION_CODE, dhcpGATEWAY_OPTION_CODE, dhcpDNS_SERVER_OPTIONS_CODE,        /* Parameter request option. */\r
        dhcpOPTION_END_BYTE\r
 };\r
index c8de69790f469edec6043da26c6e8926824fb5e9..e7d2a6c50a5035537df8d89b23b5f721da93fda3 100644 (file)
@@ -280,8 +280,7 @@ UDPPacket_t *pxUDPPacket = (UDPPacket_t *) pxNetworkBuffer->pucEthernetBuffer;
                                destinationAddress.sin_port = usPort;\r
                                destinationAddress.sin_addr = pxUDPPacket->xIPHeader.ulDestinationIPAddress;\r
 \r
                                destinationAddress.sin_port = usPort;\r
                                destinationAddress.sin_addr = pxUDPPacket->xIPHeader.ulDestinationIPAddress;\r
 \r
-                               /* The value of 'xDataLength' was proven to be at least the size of a UDP packet in prvProcessIPPacket(). */\r
-                               if( xHandler( ( Socket_t ) pxSocket, ( void* ) pcData, ( size_t ) ( pxNetworkBuffer->xDataLength - ipUDP_PAYLOAD_OFFSET_IPv4 ),\r
+                               if( xHandler( ( Socket_t ) pxSocket, ( void* ) pcData, ( size_t ) pxNetworkBuffer->xDataLength,\r
                                        &xSourceAddress, &destinationAddress ) )\r
                                {\r
                                        xReturn = pdFAIL; /* FAIL means that we did not consume or release the buffer */\r
                                        &xSourceAddress, &destinationAddress ) )\r
                                {\r
                                        xReturn = pdFAIL; /* FAIL means that we did not consume or release the buffer */\r