Anna Bridge
405f8937a7
Merge pull request #3191 from tung7970/fix-mbedos
...
Fix lwip_mac_address buffer overflow and set_ip_bytes out of bound access
2016-11-10 17:05:38 +00:00
Anna Bridge
805af00b87
Merge pull request #3194 from NXPmicro/Update_K64_SDK_Drivers
...
Update K64 sdk drivers
2016-11-10 17:05:02 +00:00
Anna Bridge
5fd81b37c3
Merge pull request #3232 from geky/nsapi-fix-gethostbyname-unspec-literal
...
nsapi - Fix missing NSAPI_UNSPEC check in gethostbyname for ip literals
2016-11-10 16:54:27 +00:00
Bartek Szatkowski
db15c1a0a3
WiFi: Minor fixes to docs and includes
2016-11-10 09:40:48 +00:00
Christopher Haster
b04a8da574
nsapi - Added test cases for gethostbyname
...
- test_dns_query
- test_dns_query_pref
- test_dns_literal
- test_dns_literal_pref
2016-11-09 12:11:02 -06:00
Christopher Haster
a3ad6181f4
nsapi - Fixed missing NSAPI_UNSPEC check in gethostbyname for ip literals
2016-11-08 18:05:35 -06:00
Martin Kojtal
96e1d5bd73
Merge pull request #3221 from andreaslarssonublox/ublox_odin_w2_drivers_update
...
u-blox odin w2 drivers update
2016-11-08 10:24:53 +00:00
Sam Grove
074555b715
Merge pull request #3113 from geky/static-assert
...
Add static assert macro
2016-11-07 10:25:17 -06:00
andreas.larsson
e111810830
Added emac_stack_mem_copy. Needed by the u-blox ODIN-W2 driver.
2016-11-07 15:52:56 +01:00
Martin Kojtal
7eaf32baa0
Merge pull request #3075 from geky/nsapi-error-size-types-2
...
nsapi - Add standardized return types for size and errors
2016-11-07 11:13:40 +00:00
Tony Wu
70ad0f5226
netsocket - Fix set_ip_bytes out-of-bound access
...
set_ip_bytes() does a 16-byte memcpy from the input buffer to
the local nsapi_addr_t despite the address version.
If the address version is ipv4, the input buffer may only be
4-byte in size. This causes a out-of-bound access on the input buffer.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2016-11-04 11:02:34 +08:00
Tony Wu
d039d30abe
lwip - Fix lwip_mac_address buffer overflow
...
Sounds serious, but should be benign.
Signed-off-by: Tony Wu <tonywu@realtek.com>
2016-11-03 20:16:58 +08:00
Mahadevan Mahesh
177eaff847
K64F ENET: Update to remove unused variable. This is no longer available in the updated SDK ENET driver
2016-11-03 07:07:49 -05:00
Sam Grove
16a8d2380e
Merge pull request #3185 from NXPmicro/Update_Tests
...
Update tests to fix build failures. Also make the code similar to oth…
2016-11-03 02:24:07 -05:00
Sam Grove
35dbb3f256
Merge pull request #3166 from kjbracey-arm/ipv6_dns_server
...
nsapi_dns: Provide 2 IPv6-hosted default servers
2016-11-03 02:17:52 -05:00
Sam Grove
53b31318d0
Merge pull request #3165 from kjbracey-arm/ns_ipv6_checks
...
Add address type checks to NanostackInterface
2016-11-03 02:16:42 -05:00
Sam Grove
6712ed1b71
Merge pull request #3099 from maximmbed/max32625
...
MAX32625
2016-11-03 02:15:43 -05:00
Sam Grove
8b05a2a02b
Merge pull request #3078 from infinnovation/lwip-config
...
lwip: Allow several configuration macros to be set externally (bis)
2016-11-03 02:15:10 -05:00
Christopher Haster
00458c391c
nsapi - Adopted standardized return types in the Nanostack interfaces
2016-11-02 15:55:42 -05:00
Christopher Haster
78b9357c80
nsapi - Adopted standardized return types in lwip
2016-11-02 15:25:22 -05:00
Christopher Haster
ba748ac1f8
nsapi - Added standardized return types for size and errors
...
nsapi_error_t - enum of errors or 0 for NSAPI_ERROR_OK
nsapi_size_t - unsigned size of data that could be sent
nsapi_size_or_error_t - either a non-negative size or negative error
2016-11-02 15:25:22 -05:00
Mahadevan Mahesh
ac9668a498
Update tests to fix build failures. Also make the code similar to other tests
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-02 11:45:14 -05:00
Martin Kojtal
fe80efe1bb
Merge pull request #3072 from jeromecoutant/PR_I2C_TESTS
...
i2c_loop tests update for STM32
2016-11-02 13:01:29 +00:00
Christopher Haster
98db3ab1cb
Adopted MBED_STATIC_ASSERT where possible
2016-11-01 21:39:48 -05:00
Sam Grove
7829b2f9bf
Merge pull request #3161 from geky/nsapi-dns-version-heuristic
...
nsapi - Add better heuristic for the default record of DNS queries
2016-11-01 14:17:08 -05:00
Sam Grove
2a3f4eda19
Merge pull request #3162 from geky/nsapi-warning-cleanup
...
lwip/nsapi - Clean up warnings in network code
2016-11-01 14:15:08 -05:00
Sam Grove
fcfc7b46a7
Merge pull request #3135 from geky/lwip-fix-cyclic-buffer-leak
...
lwip - Fix memory leak in k64f cyclic-buffer overflow
2016-11-01 14:12:24 -05:00
Sam Grove
b777a9c145
Merge pull request #3143 from marcuschangarm/config-store-fix
...
CFStore fix needed for the Cloud Client
2016-11-01 14:08:39 -05:00
Sam Grove
6893535353
Merge pull request #3169 from bridadan/USB_Updates
...
[Update of #3014 ] Usb updates
2016-11-01 10:20:57 -05:00
Jeremy Brodt
2b35a62819
Add wait for serial characters to transmit before deleting serial object.
2016-11-01 09:46:51 -05:00
Martin Kojtal
8a9a246356
Merge pull request #3158 from mikaleppanen/6lowpan_panid_filter
...
Add support for 6lowpan PAN ID filter to mbed mesh api configuration
2016-10-31 14:38:31 +00:00
Kevin Bracey
aa583bd8ce
nsapi_dns: Provide 2 IPv6-hosted default servers
...
Replace Comodo and OpenDNS IPv4 servers with Google and DNS.WATCH IPv6
servers, so IPv6-only devices (eg 6LoWPAN) have a default.
3 IPv4 resolvers should be plenty - existing code doesn't remember which
one last worked, so if early list entries were unreachable performance
would be consistently bad anyway. Replacing two entries avoids
increasing image size and RAM consumption.
On an IPv6-only or IPv4-only system, the sendto() for the wrong type of
address should fail immediately - change loop to move on to the next
server for any sendto() error.
2016-10-31 15:48:54 +02:00
Kevin Bracey
2135c8f368
NanostackInterface: Remove string round-trips
...
Older versions of SocketAddress required conversion via string - this is
no longer the case.
2016-10-31 10:20:24 +02:00
Kevin Bracey
b2834b9aa6
NanostackInterface: Allow binding to address
...
These days Nanostack does let you bind to an address - permit this.
(Remembering to check it is an IPv6 address).
2016-10-31 10:20:24 +02:00
Kevin Bracey
8e5391ab85
NanostackInterface: Check input address is IPv6
...
For the two calls that use the address - sendto and connect, check that it
actually is an IPv6 address.
2016-10-31 10:20:18 +02:00
Christopher Haster
8b7c051d03
lwip - Change k64f emac layer to drop frames on buffer exhaustion
...
Previously, exhausting hardware buffers would begin blocking the lwip
thread. This patch changes the emac layer to simply drop ethernet
frames, leaving recovery up to a higher level protocol.
This is consistent with the behaviour of the emac layer when unable
to allocate dynamic memory.
2016-10-28 15:22:08 -05:00
Christopher Haster
42105371ef
lwip/nsapi - Cleaned up warnings in network code
...
- cc.h@57,1: "BYTE_ORDER" redefined
- lwip_inet_chksum.c@560,44: passing argument 1 of 'thumb2_checksum'
discards 'const' qualifier from pointer target type
- lwip_pbuf.c@1172,9: variable 'err' set but not used
- SocketAddress.cpp@293,1: control reaches end of non-void function
2016-10-28 14:24:52 -05:00
Mahadevan Mahesh
ef56b3d712
FAT tests: Add support for KL43Z
...
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-28 12:12:26 -05:00
Mahadevan Mahesh
046f3cdb26
Update USB driver for devices with Kinetis SDK support
...
1. Fix build issues with IAR and GCC toolchain
2. Update clock initialization code
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-28 11:47:20 -05:00
Christopher Haster
d8d2b0a41d
nsapi - Added better heuristic for the default record of DNS queries
...
Takes advantage of the get_ip_address function to predict the IP
address version wanted by the underlying interface. The should avoid
the need for most IPv6 interfaces to overload gethostbyname.
suggested by @kjbracey-arm
2016-10-28 11:41:33 -05:00
Martin Kojtal
c9f9ffa583
Merge pull request #3140 from bridadan/remove_getchar_greentea_client
...
[tests] Replacing getchar with RawSerial getc in greentea-client
2016-10-28 15:34:13 +02:00
Mika Leppänen
fae713e4d1
Added support for 6lowpan PAN ID filter to mbed mesh api configuration
2016-10-28 13:28:11 +03:00
Marcus Chang
8876b7ef38
Removed static declaration for the StorageVolumeManager in the CFStore because this componenent is shared across all users of the flash. Added define guards to the CFStore location and size so that these can be changed from the settings file.
2016-10-27 10:26:28 +01:00
Martin Kojtal
bd4eca325b
Merge pull request #3024 from jeromecoutant/PR_analog_loop
...
analog_loop tests update for STM32
2016-10-27 11:02:10 +02:00
Martin Kojtal
ba47aa546b
Merge pull request #2897 from geky/nsapi-consistent-unspec
...
nsapi - Standardize support of NSAPI_UNSPEC
2016-10-27 10:26:00 +02:00
Martin Kojtal
c9c6428598
Merge pull request #3122 from SiliconLabs/SiliconLabs-cleanup-rebase
...
[Silicon Labs] Update of Silicon Labs HAL
2016-10-27 09:56:16 +02:00
Brian Daniels
7a8946ff24
Replacing getchar with RawSerial getc in greentea-client.
...
This change prevents the standard library from allocating a large buffer
on the heap. On GCC_ARM, this is a saving of 1K. On ARM, this is a saving
of 64 bytes.
2016-10-26 16:55:54 -05:00
Martin Kojtal
a7a53b7b6c
Merge pull request #3046 from mmorenobarm/master
...
[BEETLE] Update BLE stack on Beetle board
2016-10-26 15:08:55 +02:00
Martin Kojtal
8c2f874b40
Merge pull request #3093 from BrunoMPires/master
...
[SDFileSystem] Enable / Disable serial debug.
2016-10-26 14:46:30 +02:00
Steven Cooreman
8b36d9c55f
[EFM32] Workaround for SDK5.0.0 and USB
...
Aliased a few macros that changed name from SDK4.x to SDK5.x. in order to make the USB library play nice with SDK5.0.0
2016-10-25 12:05:07 -07:00