SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
By default, the SimpleLink device concatenates incoming received packets (Rx side). This is done to allow higher Rx throughput and is applicable to any type of sockets. This means that when calling to sl_Recv() or sl_RecvFrom(), the SimpleLink device tries to return the requested number of bytes asked by these API function calls.
When using UDP socket (sl_RecvFrom) this might be a problematic feature, since UDP is a connectionless data socket, a server socket can receive data from multiple client, thus aggregating these packets might be a wrong implementation.
The packet aggregation feature can be disabled upon using sl_NetCfgSet() API.
u8 RxAggrEnable = 0;
sl_NetCfgSet(SL_SET_HOST_RX_AGGR, 0, sizeof(RxAggrEnable), (_u8 *) &RxAggrEnable);