Jari Poyhonen
90c9a85397
Cellular: retire CellularBase class
...
It was decided to retire CellularBase class which served as a pure
virtual interface class from which Cellular network stack
implementations would get inherited. However, the current view is that
we may be the only user of it so we could retire CellularBase.
2019-02-18 11:50:43 +02:00
Ron Eldor
c94b5861e4
Add mbedtls platform setup and teardown to modules
...
Add calls to `mbedtls_platform_setup()`
and `mbedtls_platform_teardown()` to all modules and tests using Mbed TLS.
2019-02-18 11:43:32 +02:00
Mirela Chirica
57a93bbd0a
Cellular: Non-IP doxygen updates
2019-02-18 09:53:59 +02:00
Cruz Monrreal
3e6cd4e89d
Merge pull request #9501 from caixue1102/mbed-os-rda
...
Add WIFI support for RDA target UNO_91H
2019-02-12 20:05:27 -06:00
Cai
d92e33dcee
Add WIFI support for RDA target UNO_91H
2019-02-12 22:59:53 +08:00
Cruz Monrreal
92e1464024
Merge pull request #9584 from michalpasztamobica/tlssocket_would_block
...
TLSSocket send/recv return WOULD_BLOCK error instead of NO_CONNECTION
2019-02-11 18:45:50 -06:00
Martin Kojtal
10bb66a053
Merge pull request #9424 from SeppoTakalo/ONME-4125
...
Allows multiple network status listeners
2019-02-11 10:41:35 +01:00
Nir Sonnenschein
8c2ad14ace
Merge pull request #9568 from ARMmbed/feature-cellular-refactor
...
Merge feature cellular refactor
2019-02-07 18:17:32 +02:00
Michal Paszta
9db97247a2
TLSSocket returns WOULD_BLOCK error instead of ALREADY
...
In case mbedtls fails to execute handshake advertising
MBEDTLS_ERR_SSL_WANT_READ or MBEDTLS_ERR_SSL_WANT_WRITE,
TLSSocketWrapper::continue_handshake returns NSAPI_ERROR_WOULD_BLOCK.
2019-02-07 10:33:37 +02:00
Seppo Takalo
2744200cb7
Add NetworkInterface::attach() back, as it might be referred from binaries
2019-02-01 16:02:45 +02:00
Seppo Takalo
06aea98f99
Call "new" instead of no-throw version and the MBED_ERROR.
...
Standard new operator already calls MBED_ERROR in failure.
2019-01-31 15:21:12 +02:00
Seppo Takalo
9c98d1572b
Allow multiple network status listeners
...
Allow more than one callback to be register to NetworkInterfaces.
This introduces new APIs:
void NetworkInterface::add_event_listener(...);
void NetworkInterface::remove_event_listener(...);
Which internally calls interfaces attach() functions.
2019-01-31 15:04:24 +02:00
Ari Parkkila
47a8f24b1e
Cellular: Fix astyle
2019-01-31 04:15:01 -08:00
Martin Kojtal
a12ab30f98
Merge pull request #9414 from SeppoTakalo/ONME-4013
...
Clarify asynchronous Networkinterface::connect() and disconnect() API
2019-01-31 11:30:29 +01:00
Cruz Monrreal
f5730a91b2
Merge pull request #9474 from VeijoPesonen/fix-newlines_at_end-of-files
...
Fix newlines at end of files
2019-01-28 10:33:37 -06:00
Ari Parkkila
52ee61e1ae
Fix NetworkInterface::set_default_parameters binary compatibility
2019-01-28 03:27:10 -08:00
Jan Jongboom
ca987568d8
TCPSocket.cpp setting socket should terminate with semicolon
2019-01-24 14:25:34 -08:00
Veijo Pesonen
a6d4c6b609
L3IPInterface: make inheriting virtual explicit
2019-01-23 17:04:42 +02:00
Veijo Pesonen
9f3830aa72
Adds newlines to avoid compiler warnings
2019-01-23 16:43:32 +02:00
Michal Paszta
2cda5d28b8
Documentation of TLSSocket behavior on AUTH_FAILURE
2019-01-22 12:40:42 +01:00
Ari Parkkila
59972b6659
Cellular: Remove netsocket/generic_modem_driver
2019-01-22 02:24:45 -08:00
Mirela Chirica
55b54f7c97
Cellular: Added API for setting default parameters to a network interface
2019-01-22 02:24:45 -08:00
Mirela Chirica
ba3727b4e8
Cellular: Unit tests for Non-IP socket
2019-01-22 02:24:45 -08:00
Mirela Chirica
d301e13610
Cellular: Non-IP socket and PDP context for EPS control plane data delivery
2019-01-22 02:24:44 -08:00
Martin Kojtal
31579fe4bb
Merge pull request #9328 from SeppoTakalo/ip-core-doxygen
...
Doxygen fixes for IP networking area
2019-01-22 10:48:10 +01:00
Seppo Takalo
58c2760e3f
Fix spelling mistakes
2019-01-21 11:54:49 +02:00
Seppo Takalo
6f15b04655
Fix review findings.
2019-01-21 11:45:13 +02:00
Mel Weed
0f0469d03d
editorial changes
2019-01-21 11:45:13 +02:00
Mel Weed
b79b608362
mbed-tls/TLS to Mbed TLS
2019-01-21 11:45:13 +02:00
Mel Weed
40418d8ff9
grammatical corrections
2019-01-21 11:45:13 +02:00
Mel Weed
ea296afec2
editorial changes, punctuation
2019-01-21 11:45:13 +02:00
Kari Haapalehto
fcd497303d
Review changes
2019-01-21 11:45:12 +02:00
Mel Weed
f7e48f1385
typo fixes, future->present
2019-01-21 11:45:12 +02:00
Mel Weed
c454ba9f60
removing 'easy to use'
2019-01-21 11:45:12 +02:00
Kari Haapalehto
cabf597ab0
Hide protected start_handshake
2019-01-21 11:45:12 +02:00
Jarno Lamsa
981bfa139e
SocketAddress doxygen cleanup
2019-01-21 11:45:12 +02:00
Jarno Lamsa
8f5e003a1e
WifiInterface doxygen cleanup
2019-01-21 11:45:12 +02:00
Seppo Takalo
501f5ae32c
Add more documentation to Socket classes.
2019-01-21 11:45:12 +02:00
Seppo Takalo
db67332496
Fix DNS grouping
2019-01-21 11:45:12 +02:00
Seppo Takalo
706af114e3
Remove extra @param values
2019-01-21 11:45:12 +02:00
Kari Haapalehto
5fa13e43d1
Doxygen corrections to DTLSSocket.h, TLSSocket.h, TLSSocketWrapper.h
...
and DTLSSocketWrapper.h
2019-01-21 11:45:12 +02:00
Seppo Takalo
249fa7fd6f
Create new netinterface Doxygen group
2019-01-21 11:43:49 +02:00
Seppo Takalo
0619b90997
Fix NetworkInterface grouping
2019-01-21 11:43:49 +02:00
Kari Haapalehto
0fbdb692e9
Doxygen corrections to:
...
- DTLSSocket.h
- TLSSocket.h
- TLSSocketWrapper.h
2019-01-21 11:43:49 +02:00
Seppo Takalo
bfd497fe26
Fix netsocket Doxygen group
2019-01-21 11:43:49 +02:00
Kevin Bracey
ab037c6f69
InternetSocket: better protect _callback
...
sigio callbacks can be triggered from interrupt, so changing _callback
needs critical section protection, not just a mutex.
2019-01-18 15:37:11 +02:00
Kevin Bracey
0f6a4cd0bd
InternetSocket: Use atomics, not volatile
...
Use a better tool for the job.
2019-01-18 15:37:11 +02:00
Seppo Takalo
6c5b845517
Clarify asyncronous Networkinterface::connect() and disconnect() API
...
This is slight API change, as a new return code is introduced.
Intention is to properly support asyncronous drivers that might
not be able to get new operation into execution, therefore they
need to return BUSY.
2019-01-18 15:36:23 +02:00
Cruz Monrreal
92a5f2f8f2
Merge pull request #9337 from tymoteuszblochmobica/removecellular
...
unittest: remove cellular driver L3IP stub
2019-01-16 22:06:27 -06:00
Tymoteusz Bloch
18967a88f3
Removed cellular driver L3IP stub
2019-01-14 12:08:41 +01:00
kegilbert
70b9b753db
Add doxygen spellcheck jobs to Travis
...
Currently tests
- drivers
- platform
- rtos
- events
- features/netsocket
2019-01-11 10:22:15 -06:00
c_jin
be65ebd038
add SPDX indentifier, modify 450zi.icf file and static definition in us_ticker.c
2019-01-09 19:03:33 +08:00
c_jin
5a1108e742
Add GD32_F450ZI as new target
2019-01-09 19:03:33 +08:00
Cruz Monrreal
54f759176b
Merge pull request #9210 from AnttiKauppila/mbed_h_fix
...
mbed.h includes removed
2019-01-04 10:27:30 -06:00
Seppo Takalo
50eb243762
Don't consume 36 kB just for Ethernet buffers.
...
Kintis EMAC is consuming 16 rinbuffers for input, and 8 buffers for output.
This is over-use because input packets are immediately allocated from
heap when passed to LwIP. Therefore the number can be creatly reduced.
2019-01-02 19:05:16 +02:00
Antti Kauppila
02b0f79e15
mbed.h includes removed
2018-12-28 14:36:10 +02:00
Tymoteusz Bloch
fc88922845
L3IP Interface Implementation
...
LWIP L3IP interface initial implementatioon
2018-12-20 15:23:43 +01:00
Martin Kojtal
06748af2f8
Merge pull request #9079 from kegilbert/TCPSocket-accept-statelog
...
Add socket stat logging state change update
2018-12-18 08:06:05 +00:00
kegilbert
ee3945dfa3
Add socket stat logging state change update
...
TCPServer was deprecated and the accept call was added to TCPSocket. Add state change update to that call
2018-12-13 14:50:56 -06:00
Martin Kojtal
c387fec36b
Merge pull request #8725 from ChazJin/master
...
Add support for GD32F307VG
2018-12-12 14:42:20 +01:00
deepikabhavnani
c272377a81
Make sure no memory overhead if statistics are disabled
2018-11-26 09:42:45 -06:00
deepikabhavnani
fa6b3d2783
Corrected TCPServer reporting as per review comments
2018-11-26 09:42:45 -06:00
deepikabhavnani
068f2d14c0
Resolve IAR build issue
...
IAR not able to assign default zero value in array and complaints of
internal error as below:
[ERROR] Internal error: [Front end]: assertion failed at:
"..\..\Translator\compiler_core\src\parser\edg\decl_inits.c", line 2031
2018-11-26 09:42:45 -06:00
Amanda Butler
81fc940a8e
Edit SocketStats.h
...
Edit file.
2018-11-26 09:42:45 -06:00
deepikabhavnani
117eb0bc87
Add socketstats stub functions for unittest and addressed reviews
2018-11-26 09:42:50 -06:00
Deepika
f6c1a40b29
Add config options for socket statistics
...
1. MBED_CONF_NSAPI_SOCKET_STATS_ENABLE to enable the statistics
2. MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT max sockets statistics cached
2018-11-26 09:42:45 -06:00
Deepika
a851df66e3
Code/bug after testing
...
1. Fixing astyle and docs
2. Extra mutex lock was removed
3. Bytes are updated when send/recv > 0 and not in case of -ve error
4. Review comments
5. Guard statistics implementation in test with MBED_NW_STATS_ENABLED
2018-11-26 09:42:45 -06:00
Deepika
09b4bc07ce
This is the initial version of stats implementation in network layer.
...
SocketStats Class is added to collect and provide the statistics information.
In this phase only socket information is collected and max sockets that can
be recorded at any time are configurable through 'MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT'
Network statistics can be enabled through a macro MBED_NW_STATS_ENABLED
More information on design is captured in #8743
2018-11-26 09:42:39 -06:00
Martin Kojtal
aae6bb125a
Merge pull request #8836 from SeppoTakalo/clarify_connect_docs
...
Clarify asynchronous NetworkInterface::connect() documentation
2018-11-25 11:27:16 +01:00
Martin Kojtal
b16569dc3f
Merge pull request #8838 from 0xc0170/dev_rollup
...
Rollup v2 for 5.11rc1
2018-11-24 21:37:02 +01:00
Martin Kojtal
cb6f5d65e7
Merge pull request #8766 from jarvte/fix_cellular_backward_com
...
Fix cellular backward compatibility
2018-11-24 08:05:56 +01:00
Martin Kojtal
b9ea30abf1
Merge branch 'socket_open_deprecated' of https://github.com/michalpasztamobica/mbed-os into dev_rollup
2018-11-23 18:38:02 +00:00
Martin Kojtal
95b1e75202
Merge branch 'dtls' of https://github.com/SeppoTakalo/mbed-os into dev_rollup
2018-11-23 18:36:55 +00:00
Seppo Takalo
1b80f6ba5e
Clarify asynchronous NetworkInterface::connect() documentation
2018-11-22 12:52:28 +02:00
c_jin
a9ce7a6836
Add SPDX identifier for GD EMAC driver
2018-11-21 12:46:28 +08:00
Seppo Takalo
5459a7b5c9
Add license headers into TLSSocket files
2018-11-20 11:47:29 +02:00
Seppo Takalo
0f5cec3ebc
Include TLSSocket and DTLSSocket in Doxygen
2018-11-20 11:47:28 +02:00
Jimmy Brisson
f41b78c6b8
Move EMAC implementation to shared target
2018-11-19 09:37:17 -06:00
Seppo Takalo
bdc355f873
Astyle fixes
2018-11-19 15:31:31 +02:00
Seppo Takalo
5d170f2b3e
Clarify that TLSSocket should not be reopened.
2018-11-19 15:19:50 +02:00
Seppo Takalo
6192ed1480
Compare the intermediate timestamps as well
2018-11-19 15:19:50 +02:00
Seppo Takalo
2229a2f2f5
Need to protect members with MBEDTLS_PK_C and X509_CRT_PARSE flags.
...
This is dependency to X509_CRT_PARSE but just to make sure
that also the 'mbedtls_pk_context' structure is not used if that
flag is not enabled.
2018-11-19 15:19:49 +02:00
Seppo Takalo
46c46019bc
Refactor DTLSSocket to use Socket::getpeername()
...
Also, let DTLSSocket to be a friend of InternetSocket so it can do
the name resolution from its _stack.
+ Some whitespace fixes
2018-11-19 15:19:49 +02:00
Seppo Takalo
695db63df8
Decrease verbosity of the TLSSocketWrapper
2018-11-19 15:19:49 +02:00
Michal Paszta
392bccf835
Add unit tests for TLSSocket and TLSSocketWrapper
...
This also includes their Datagram counterparts: DTLSSocket and DTLSSocketWrapper.
Coverage missing for timer-related functionality, but this would require more advanced stub development.
The extra (d)tls_test_config.h is necessary for successful compilation without HW support for the mbedtls features in unittests.
I reused the mbedtls stub found in features/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c and amended it slightly with a few missing functions.
2018-11-19 15:19:49 +02:00
Seppo Takalo
2ca1fe65dd
Implement DTLSSocket helper
...
This is equivalent of TLSSocket class but for UDP and DTLS.
2018-11-19 15:19:49 +02:00
Seppo Takalo
d22adbdb26
Implement DTLSSocketWrapper and fix non-blocking connections on TLSSocket
...
DTLSSocketWrapper is equivalent of TLSSocketWrapper but uses datagram mode
and timers for handling Mbed TLS timeouts.
Non-blocking connections were not working earlier, now fixed for both
secure socket modes.
2018-11-19 15:19:49 +02:00
Michal Paszta
42940fab3c
Deprecate TCP/UDPSocket open-calling constructors
...
Updated Doxygen, removed the only one call of the deprecated constructor from the tests.
2018-11-19 12:19:52 +01:00
Teppo Järvelin
a3589ed41f
Fixed cellular backward compatiblity.
2018-11-19 09:04:22 +02:00
c_jin
5a15f810a6
Error modification
2018-11-19 09:41:17 +08:00
c_jin
2b9071afe6
conflicts resolve
2018-11-18 20:19:19 +08:00
chao_king
61d3bc804c
Update licence
2018-11-18 19:30:17 +08:00
chao_king
d2e731bcf5
Update licence
2018-11-18 19:30:07 +08:00
chao_king
9131b3f9ec
Update licence
2018-11-18 19:29:43 +08:00
chao_king
700f3a2c69
Add EMAC driver for GD32_F307VG
2018-11-18 19:26:04 +08:00
Qinghao Shi
d157e59267
reformat to following codeing style rules
2018-11-16 10:29:31 +00:00
Qinghao Shi
25e8f89567
update wait_ms() to sleep_for()
2018-11-16 10:29:31 +00:00
Qinghao Shi
78b186ec56
Update code according to the reviews
...
* move emac driver to COMPONENT folder
* use mbed rtos C++ API instead of CMSIS API
2018-11-16 10:29:31 +00:00
Qinghao Shi
e603f1ad49
add FVP EMAC driver
2018-11-16 10:22:42 +00:00
Cruz Monrreal II
5c1c7bf71f
Merge branch 'fix_astyle_error' of ssh://github.com/0xc0170/mbed-os into rollup-b.1
2018-11-15 18:26:09 -06:00