-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: lib: download_client: Fix address parsing
Fixed few address parsing issues from download client * If unsupported protocol was used, for example telnet://example.com parser just assumed that parsing failure as no protocol and defaulted to HTTP. Now returns EPROTONOSUPPORT as documented earlier. * If no protocol was provided, but beginning of of the host address matched some protocol, that protocol was assumed. For example: download_client_get(&c, "coap.me/index.html", &cfg , 0, 0) uses coap://, because "coap" matches, but it should have used "http://". Now it needs to have "://" in the protocol to match. Also, converted ztests to native_sim instead of native_posix. Added few more unittests for the cases above. Signed-off-by: Seppo Takalo <[email protected]>
- Loading branch information
1 parent
283de53
commit 456af0c
Showing
8 changed files
with
115 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_ASAN=y | ||
CONFIG_NET_TCP=y | ||
CONFIG_NET_TCP_ISN_RFC6528=n | ||
CONFIG_NET_UDP=y | ||
CONFIG_MBEDTLS=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
tests: | ||
net.lib.download_client: | ||
tags: fota | ||
platform_allow: native_posix nrf9160dk_nrf9160 nrf9160dk_nrf9160_ns | ||
platform_allow: native_sim nrf9160dk_nrf9160 nrf9160dk_nrf9160_ns | ||
integration_platforms: | ||
- native_posix | ||
- native_sim |