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: stack/pico_arp.c
- Revision:
- 70:cd218dd180e5
- Parent:
- 68:0847e35d08a6
- Child:
- 73:dfb737147f6e
--- a/stack/pico_arp.c Wed Sep 25 12:20:39 2013 +0000 +++ b/stack/pico_arp.c Thu Sep 26 07:05:22 2013 +0000 @@ -28,7 +28,7 @@ static struct pico_queue pending; static int pending_timer_on = 0; -void check_pending(unsigned long now, void *_unused) +void check_pending(uint64_t now, void *_unused) { struct pico_frame *f = pico_dequeue(&pending); IGNORE_PARAMETER(now); @@ -68,7 +68,7 @@ struct pico_eth eth; struct pico_ip4 ipv4; int arp_status; - uint32_t timestamp; + uint64_t timestamp; struct pico_device *dev; }; @@ -172,7 +172,7 @@ } #endif -void arp_expire(unsigned long now, void *_stale) +void arp_expire(uint64_t now, void *_stale) { struct pico_arp *stale = (struct pico_arp *) _stale; IGNORE_PARAMETER(now); @@ -280,13 +280,13 @@ return ret; } -int pico_arp_query(struct pico_device *dev, struct pico_ip4 *dst) +int32_t pico_arp_query(struct pico_device *dev, struct pico_ip4 *dst) { struct pico_frame *q = pico_frame_alloc(PICO_SIZE_ETHHDR + PICO_SIZE_ARPHDR); struct pico_eth_hdr *eh; struct pico_arp_hdr *ah; struct pico_ip4 *src; - int ret; + uint32_t ret; src = pico_ipv4_source_find(dst); if (!src) @@ -316,5 +316,5 @@ arp_dbg("Sending arp query.\n"); ret = dev->send(dev, q->start, q->len); pico_frame_discard(q); - return ret; + return (int32_t)ret; }