Seppo Takalo
7a33700bb4
Replace Copyright ARM with a proper Apache 2 license header
2019-02-25 14:17:42 +02:00
Seppo Takalo
b14df9e0de
Add missing copyright header to STM32 driver
2019-02-25 14:09:36 +02:00
Michal Paszta
08b06e25d0
Document network parameters in netsocket/mbed_lib.json
2019-02-22 10:13:21 +02:00
Volodymyr Medvid
b0a33273ff
Correctly include EventQueue.h
...
There are two EventQueue.h in mbed-os codebase:
events/EventQueue.h
features/FEATURE_BLE/ble/pal/EventQueue.h
By accident, `mbed compile` generates includes.txt with the correct
order of include search paths. This is not the case for the CMake
exporter: targets with FEATURE_BLE enables fail to compile with errors:
mbed-os/features/cellular/framework/AT/ATHandler.h:99:60: error:
'events' has not been declared
Update all places to always include either "events/EventQueue.h"
or "ble/pal/EventQueue.h": to always find the correct header.
2019-02-21 17:59:05 +02:00
Martin Kojtal
dbd92c746b
Merge pull request #9387 from tymoteuszblochmobica/Sockets
...
Multihoming initial release
2019-02-21 13:50:03 +01:00
Cruz Monrreal
b088bd493a
Merge pull request #9759 from michalpasztamobica/memory_handling_fixes
...
Multiple memory handling fixes
2019-02-20 12:07:45 -06:00
Martin Kojtal
5ada4bf9af
Merge pull request #9746 from blind-owl/retire_cellularbase_class
...
Cellular: retire CellularBase class
2019-02-20 15:30:43 +01:00
Tymoteusz Bloch
641189c357
Multihoming change parameter orded in gethostbyname
2019-02-20 14:37:33 +02:00
Michal Paszta
fa6a3f5604
Multiple memory handling fixes
...
Based on valgrind reports running on unit tests following changes were introduced:
* TLSSocketWrapper frees allocated cert buffer in case of errors from mbedtls,
* nsapi_addr has a mem_init() function, initializing all of its memory during construction.
2019-02-20 14:15:57 +02:00
Jari Poyhonen
7a195ae227
Cellular: fix for binary compability requirement for CY8CKIT_062_4343W
2019-02-20 10:03:34 +02:00
Cruz Monrreal
e3bc37b4de
Merge pull request #9655 from mirelachirica/nonip_doxygen_updates
...
Cellular: Non-IP doxygen updates
2019-02-19 15:29:14 -06:00
Cruz Monrreal
feae56eea1
Merge pull request #9493 from RonEld/add_platform_initialization_in_trng_test
...
Initialize platform in trng test
2019-02-19 15:27:40 -06:00
Tymoteusz Bloch
49141376ee
Multihoming initial release
...
Added Multihoming feature to LWIP (ability to use more than one network interfaces) for increasing networking reliability.
This involves:
LWIP interface
LWIP IP routing
DNS storage
Sockets (bind to interface name possibility)
possibility to add non default network interface
cellular middleware modifications if cellular connection is used
2019-02-19 17:39:46 +02:00
Martin Kojtal
723236f855
Merge pull request #9307 from mtomczykmobica/ONME-3949
...
Configuration options for STM_EMAC buffer counts
2019-02-19 14:09:24 +01:00
Jari Poyhonen
b0c7c266c6
Cellular: add SPDX identifier
2019-02-19 10:42:04 +02:00
Marcin Tomczyk
a5f93e0b07
ONME-3949 Configuration options for STM_EMAC buffer counts
2019-02-19 08:18:18 +01:00
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