|
3 | 3 | * uC/TCP-IP |
4 | 4 | * The Embedded TCP/IP Suite |
5 | 5 | * |
6 | | -* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com |
| 6 | +* Copyright 2004-2021 Silicon Laboratories Inc. www.silabs.com |
7 | 7 | * |
8 | 8 | * SPDX-License-Identifier: APACHE-2.0 |
9 | 9 | * |
|
22 | 22 | * TEMPLATE |
23 | 23 | * |
24 | 24 | * Filename : net_cfg.h |
25 | | -* Version : V3.06.00 |
| 25 | +* Version : V3.06.01 |
26 | 26 | ********************************************************************************************************* |
27 | 27 | */ |
28 | 28 |
|
@@ -514,6 +514,29 @@ extern const NET_TASK_CFG NetTmrTaskCfg; |
514 | 514 | /* to never time out. Note that it's possible to change at runtime any timeout values using Socket option API. */ |
515 | 515 | /* #define NET_TCP_DFLT_TIMEOUT_CONN_RX_Q_MS 1000u */ |
516 | 516 | /* #define NET_TCP_DFLT_TIMEOUT_CONN_TX_Q_MS 1000u */ |
| 517 | +/* */ |
| 518 | +/* */ |
| 519 | +/* When a new TCP connection is established, RFC #6528 recommends the sequence number to be randomized w/ the following */ |
| 520 | +/* method: */ |
| 521 | +/* ISN = M + F(localip, localport, remoteip, remoteport, secretkey) */ |
| 522 | +/* */ |
| 523 | +/* Where: */ |
| 524 | +/* M = The value of a counter (NetTCP_TxSeqNbrCtr) maintained by the developer */ |
| 525 | +/* at the BSP level. The counter must be incremented by '1' every 4 uS. */ |
| 526 | +/* */ |
| 527 | +/* F = A mixing function (chosen to be MD5) that takes as input the five-tuple: */ |
| 528 | +/* (localip, localport, remoteip, remoteport, secretkey); of which the first */ |
| 529 | +/* four coordinates are known but 'secretkey' must be chosen preferably at */ |
| 530 | +/* boot time (See NetTCP_Init()). */ |
| 531 | +/* */ |
| 532 | +/* */ |
| 533 | +/* When the NET_TCP_CFG_RANDOM_ISN_GEN define is uncommented, the user must define a BSP-level function with signature */ |
| 534 | +/* CPU_INT32U NetBSP_GetEntropyVal(void) that returns a 32 bit random value generated by a hardware random number */ |
| 535 | +/* generator or from another entropy source (such as an ADC). This value will be used to seed the initial sequence nbr. */ |
| 536 | +/* In addition, the user should maintain a 32-bit counter incremented every 4 microseconds as described above. */ |
| 537 | +/* */ |
| 538 | +/* #define NET_TCP_CFG_RANDOM_ISN_GEN */ |
| 539 | +/* */ |
517 | 540 | /* ==================================================================================================================== */ |
518 | 541 |
|
519 | 542 |
|
|
0 commit comments