BLOCK2 code-branch was missing handling for duplicate packets. As part of the fix, added also
a call to update the duplicate package data via a new function
sn_coap_protocol_update_duplicate_package_data_all.
The new implementation handles all CoAP messages, not just those with COAP_MSG_TYPE_ACKNOWLEDGEMENT.
Add also 4.13 (Request Entity Too Large) responses to duplicate info list.
Add client library configurations for DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED.
Increased the default timeouts of DEFAULT_RESPONSE_TIMEOUT and SN_COAP_DUPLICATION_MAX_TIME_MSGS_STORED to 300 seconds.
These two are critical parameters for low-bandwidth high-latency networks. The defaults should be more geared towards such networks that are likely to have issues with transmissions.
The increased defaults can increase the runtime HEAP usage when there is a lot of duplicates or retransmissions.
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.
(cherry picked from commit c927773115)
This change is provided by Packetcraft (which maintains the
Cordio BLE stack) to address possible Sweyntooth vulnerabilities.
(cherry picked from commit 0402fe4efb)
Issue: The problem is that there is a race condition introduced in that the LWIP thread is relying on the
interface as it is taken down by a application thread while calling disconnect.
In disconnect api called from application context, whd_emac_wifi_link_state_changed() will refer to netif interface
structure in its callback api netif_link_irq(netif). This netif will be cleared by remove_etherent_interface().
whd_emac_wifi_link_state_changed will post message to tcpip_thread. tcpip_thread will process the message and
call the callback api netif_link_irq(netif)
Calling sequence is whd_emac_wifi_link_state_changed -> remove_etherent_interface(). Hence there is a timing issue
that netif might be cleared first before tcpip thread process the message netif_link_irq(netif)
Fix: remove_etherent_interface() will post message to tcpip thread and tcpip:
thread process the message delete_interface()
which will actually remove the inferface from the netif_list.
Calling sequence is whd_emac_wifi_link_state_changed() message post -> remove_etherent_interface() message post.
message processing order netif_link_irq(netif) -> delete_interface().
Since both the processing is handled in single thread, processing of message is handled sequentially.
cc03296c27 Merge branch 'release_internal' into release_external
59397d17c4 Fixed Wi-SUN border router restart after settings change
8295a43668 PAE authenticator TLS authentication limit based on dynamic value
2776cfef50 RPL config update not re-start whole BR again just increment version number and with new parameters.
bec4d48946 Fixed FHSS testing now it follow configured channel count not a wi-sun configured Default.
b9cad9d362 Remove floating point literals from Thread code
423a48f48b RPL link etx validation update
89a497a386 Merge branch 'release_internal' into release_external
c8cc6601fd Merge pull request #2336 from ARMmbed/sync_with_mbedos
ac5f369d70 MBEDTLS_SSL_EXPORT_KEYS added to Nanostack's tls_sec_prot_lib
6522a086ef Added missing optimizations based on mbedtls/baremetal.h config
0e8739fae3 Added new global rng, needed for MbedTLS optimisations
d5db37eec8 Prepare for upcoming MbedTLS changes
4271a9dda9 Merge pull request #2335 from ARMmbed/sync_with_mbedos
e2db6ffefb Fixed error of function 'mac_fcf_lenght'
28fc2a9543 Fixed error of structure
194e81beda Fixed spelling mistake of structure
00ea3fb83c Remove test files
d7f7cc582a Merge branch 'release_internal' into release_external
132cd12107 Merge pull request #2333 from ARMmbed/sync_with_mbedos
550a78e544 Fix function spelling mistake in Thread
74c60242e1 Fix function spelling mistake in border_router.c
89830ecf1a Fix function spelling mistake in iphc_decompress.c
1728ae12dc Fix function spelling mistake in lowpan_context.c
ed5d253fcc Fix function spelling mistake in lowpan_context.h
ecbca0a2ed Fixed typo 'thead' in thread_neighbor_class.h
071911b30a Changed nanostack API network size to be a range of values
4756be4766 NEW API for Validation RX Unicast schedule channel.
0b48e5c018 Channel Mask update ,support for excluded Channels and FHSS API pdate
ead1ade5a7 Start sending PAS message after EAPOL parent TX fails.
8de473b245 Implemented 802.15.4 mode setting (#2328)
975b9e670b Added missing configuration api empty functions
f7db06eb1e Added configuration storage (#2283)
e9561f0fe4 Removed mbedTLS internal include file
fe812c3c1f Changed certificate error message wording to be less fatal
97aaf5f613 Add network property API to Nanostack (#2318)
cfd1a4d271 Fixed Route cost calculation
5094614813 Added opeation mode validation for detect unsupported values.
44f85aaf4b Enabled RPL candidate list filtering and only certificate setup accept without limit.
145c7399b3 Wi-sun address registration trigger update
d492575adb Modified ARO registrations timeouts from the address lifetime
b898f04b5b Removed Extra version number update at revocation start.
b9d14097e2 Wi-sun config message consustent filter
dcebff9bb5 Use RPL parent soft filtering only after bootstrap.
523593e014 Fixed Broken new channel mask update.
a3bcc2d2c8 Removed the PAN version change requirement from routers
bc919d8241 Merge pull request #2315 from ARMmbed/merge_release_internal_to_master
git-subtree-dir: features/nanostack/sal-stack-nanostack
git-subtree-split: cc03296c27fbe26663182d90586e2d31f140e300
5aa54b8e62 Merge pull request #127 from ARMmbed/sync_with_mbedos
6fe78412d2 Follow Mbed OS coding style
2b708be451 trace group defiined for shared_rng
d4c2caca41 more error handling added for ctr and hmac
cace1e9c22 Added missing optimizations based on mbedtls/baremetal.h config
2cc7442ba5 Added new global rng, needed for MbedTLS optimisations
f861157576 Prepare for upcoming MbedTLS changes
git-subtree-dir: features/nanostack/coap-service
git-subtree-split: 5aa54b8e622ec2b44bdf323cc02bd1cfc5ffd904
DISCO_F769NI EMAC driver may return ethernet packet with illegal
length when driver is under heavy load. In one case, the received
bytes indicate frame length of 53 bytes but advertised data length
was 65518 bytes. In another case EMAC driver variable
`EthHandle.RxFrameInfos.length` contained value 0xFFFF FFFC.
As a work-around accept only 1-1500 bytes long ethernet packets.
This assert in WhdSTAInterface.cpp causes rssi greentea test to fail
on Cypress parts. This is because the rssi GT test expects the negative
test case to return 0 and not assert.
Update Mbed OS's PSA Crypto service to work with Mbed Crypto 3.x.
- psa_asymmetric_verify() is now called psa_verify_hash().
- psa_asymmetric_sign() is now called psa_sign_hash().
Compatibilty wrappers are provided via crypto_compat.h for source-level
backwards compatibility.
- Update psoc6pdl to version 1.4.1.2240
- Update psoc6 core_lib to version 1.1.1.11109.
- Update psoc6hal to 1.1.1.11145.
- Store RTC century and RTC state information in persistent BREG register.
- Remove CY8CMOD_062_4343W and merge into CY8CPROTO_062_4343W.
- Remove CY8CMOD_062S2_43012 and merge into CY8CKIT_062S2_43012.
- Remove CY8CMOD_062S3_4343W and merge into CY8CPROTO_062S3_4343W.
- Removed CY8CMODs from targets.json.
- Removed unnecessary PSOC6Code.complete post binary hook from cypress targets.
- Remove wounding for the hardware CRYPTO block. The PSoC 6 MPN CYW9P62S1_43012EVB_01 was revised
to add the hardware crypto block.
- Add missing error checks for emac power up.
- Add a multiplied by 2 in the SDIO clock divider calculation to account for internal UDB divider.
Note: Fixes issues with intermittent WiFi firmware load failures on CY8CKIT_062_WIFI_BT,
CYW943012P6EVB_01, CYW9P62S1_43012EVB_01, CYW9P62S1_43438EVB_01.