Commit Graph

27 Commits (c3737b4f7ad9bbfe6379942ee743fbd7d2b4e548)

Author SHA1 Message Date
Sam Grove c1ee7fb494 Merge pull request #2504 from ohagendorf/disco_f769_ii
[Disco_F769NI] adding new target
2016-09-10 07:16:21 -05:00
Sam Grove a35cd7f81f Merge pull request #2579 from geky/nsapi-max-socket-accept
lwip - Fix handling of max sockets in socket_accept
2016-09-10 07:11:20 -05:00
Olaf Hagendorf 765aeb0dc6 disco_f769ni adding ethernet init
the IPV4 feature was already enabled in an earlier commit but the mbed 5 ethernet initialisation was missing
2016-09-09 14:21:55 +02:00
Christopher Haster c3130e51e4 lwip - Added check for previously-bound socket
Avoids what turns into an infinite loop in lwip's internals
2016-08-29 18:47:30 -05:00
Christopher Haster 506aa3d4ea lwip - Fixed handling of max sockets in socket_accept 2016-08-29 17:37:13 -05:00
Christopher Haster a3ecdf3b71 [nsapi] Adopted netconn_gethostbyname in the lwip interface
Provides proper integration with DHCP through lwip
2016-08-26 12:16:41 -05:00
Sam Grove 9d3557fbcc Merge pull request #2541 from cyliangtw/master
Fix NUC472 Ethernet wrong INT status in RX_Action
2016-08-26 09:26:51 -05:00
Sam Grove 2ecb560eb7 Merge pull request #2502 from c1728p9/fix_lwip_blocking_recv
LWIP - fix recv blocking send on accepted sockets
2016-08-25 09:25:01 -05:00
cyliangtw 0441707d4e Fix NUC472 Ethernet wrong INT status in RX_Action 2016-08-25 15:06:52 +08:00
Christopher Haster 47018fe1ac Added check for packet address in ipv4 nist test 2016-08-23 18:45:57 -05:00
Christopher Haster 1826978e8c Fixed recvfrom address in ipv4 nist tests
Previous behaviours overwrote server address on failures
2016-08-23 14:47:43 -05:00
Sam Grove eb3b99ac0b Merge pull request #2404 from bridadan/retry-nist-udp-test
Adding retries to the NIST test.
2016-08-22 22:42:10 -05:00
Russ Butler 2c02e58853 LWIP - fix recv blocking send on accepted sockets
When a socket is created via accept set the mode to nonblocking -
a timeout of 1ms. This allows send and recv to occur at the same time.
2016-08-19 16:23:12 -05:00
Martin Kojtal 133f16aa5d Merge pull request #2473 from svastm/ethernet_mbed_5
[STM32] Add ethernet and feature IPV4
2016-08-19 11:40:33 +01:00
Martin Kojtal da69629cd8 Merge pull request #2434 from infinnovation/socket-accept-address
network-socket: Optionally return peer address from accept().
2016-08-19 11:31:17 +01:00
svastm 43be3b403e [STM32] Add ethernet and feature IPV4
This commit refactor the `lwip-eth/arch/TARGET_STM` folder and add the IPV4 feature for the
following targets:

 - NUCLEO_F207ZG
 - NUCLEO_F429ZI
 - NUCLEO_F767ZI
 - DISCO_F746NG
2016-08-17 10:27:32 +02:00
Christopher Haster de9e221775 [nsapi] Added support for NSAPI_REUSEADDR to the lwip interface 2016-08-12 18:43:42 -05:00
Colin Hogben 36bf4827c7 network-socket: Optionally return peer address from accept().
Fixes issue #2399 by optionally returning a SocketAddress from
TCPServer::accept().

This entails changes to underlying NetworkStack and nsapi.  This
commit deals only with lwip and higher level APIs; other users of
NetworkStack and nsapi may be affected.  Currently lwip is the only
in-tree user of nsapi.
2016-08-12 10:50:52 +01:00
Brian Daniels 114efcf753 Adding retries to the NIST test.
A UDP request to the NIST servers can fail to return data due to UDP
packet loss. Since packets are not guaranteed with UDP, this is a valid
failure and should not be treated as a test failure. The test should retry
the request in this case. This commit adds those retries.
2016-08-10 09:25:04 -05:00
Sam Grove 34caf43f5a Merge pull request #2238 from OpenNuvoton/nuc472
[NUC472] Add NUMAKER-PFM-NUC472
2016-08-04 10:37:31 -05:00
Sam Grove 8c3c98b644 Merge pull request #2332 from bridadan/add-net-test
Patch of #2318
2016-08-02 18:57:12 -05:00
Christopher Haster 06826a935d Fixed issue with reconnecting the ethernet interface
Previously the EthernetInterface class was unable to be connected
after being brought down. The core issue is that lwip was not designed
to be completely brought down due once initialized.

To work around this, the ethernet interface only initializes once and
leaves itself up after a disconnect call. The DHCP lease is still
released/acquired on disconnect/connect.
2016-08-02 13:33:13 -05:00
Brian Daniels c355fb16d4 Restricting IPV4 echo tests to chars 0-9.
Having the echo tests generate any random character
caused issues serializing the test output into an
xml file. This change limits the characters generated
by the device to '0' - '9'.
2016-08-01 16:48:21 -05:00
Sam Grove 5f43f18ba3 adding tests for net/IPV4 2016-07-29 16:10:36 -05:00
cyliangtw 5710178afb Add NUC472 eth and entropy 2016-07-28 10:00:49 +08:00
Russ Butler ebf42f02e9 Add includes so lwip compiles 2016-07-22 18:35:37 -05:00
Christopher Haster 1fcc02318a Add 'features/net/FEATURE_IPV4/lwip-interface/' from commit '63e816f0858cf3de3678aea4deec941add516790'
git-subtree-dir: features/net/FEATURE_IPV4/lwip-interface
git-subtree-mainline: 83f24fb0bd
git-subtree-split: 63e816f085
2016-07-22 02:04:56 -05:00