Free (GPLv2) TCP/IP stack developed by TASS Belgium
Dependents: lpc1768-picotcp-demo ZeroMQ_PicoTCP_Publisher_demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test ... more
PicoTCP. Copyright (c) 2013 TASS Belgium NV.
Released under the GNU General Public License, version 2.
Different licensing models may exist, at the sole discretion of the Copyright holders.
Official homepage: http://www.picotcp.com
Bug tracker: https://github.com/tass-belgium/picotcp/issues
Development steps:
initial integration with mbed RTOSgeneric mbed Ethernet driverhigh performance NXP LPC1768 specific Ethernet driverMulti-threading support for mbed RTOSBerkeley sockets and integration with the New Socket APIFork of the apps running on top of the New Socket APIScheduling optimizations- Debugging/benchmarking/testing
Demo application (measuring TCP sender performance):
Import programlpc1768-picotcp-demo
A PicoTCP demo app testing the ethernet throughput on the lpc1768 mbed board.
Diff: modules/pico_slaacv4.c
- Revision:
- 152:a3d286bf94e5
- Parent:
- 149:5f4cb161cec3
- Child:
- 154:6c0e92a80c4a
--- a/modules/pico_slaacv4.c Wed Apr 09 17:32:25 2014 +0200 +++ b/modules/pico_slaacv4.c Mon Sep 28 13:16:18 2015 +0200 @@ -1,5 +1,5 @@ /********************************************************************* - PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved. + PicoTCP. Copyright (c) 2012-2015 Altran Intelligent Systems. Some rights reserved. See LICENSE and COPYING for usage. Authors: Bogdan Lupu @@ -11,12 +11,12 @@ #ifdef PICO_SUPPORT_SLAACV4 -#define SLAACV4_ADDRESS 0xa9fe0000 -#define SLAACV4_MASK 0x0000FFFF -#define SLAACV4_MINRANGE 0x00000100 -#define SLAACV4_MAXRANGE 0x0000FD00 +#define SLAACV4_NETWORK ((long_be(0xa9fe0000))) +#define SLAACV4_NETMASK ((long_be(0xFFFF0000))) +#define SLAACV4_MINRANGE (0x00000100) /* In host order */ +#define SLAACV4_MAXRANGE (0x0000FDFF) /* In host order */ -#define SLAACV4_CREATE_IPV4(seed) (((seed % SLAACV4_MAXRANGE) + SLAACV4_MINRANGE) & SLAACV4_MASK) | SLAACV4_ADDRESS +#define SLAACV4_CREATE_IPV4(seed) ((long_be((seed % SLAACV4_MAXRANGE) + SLAACV4_MINRANGE) & ~SLAACV4_NETMASK) | SLAACV4_NETWORK) #define PROBE_WAIT 1 /* delay between two tries during claim */ #define PROBE_NB 3 /* number of probe packets during claim */ @@ -172,7 +172,7 @@ return -1; } - ip.addr = long_be(pico_slaacv4_getip(dev, 0)); + ip.addr = pico_slaacv4_getip(dev, 0); pico_slaacv4_init_cookie(&ip, dev, &slaacv4_local, cb); pico_arp_register_ipconflict(&ip, &dev->eth->mac, pico_slaacv4_receive_ipconflict);