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: include/pico_frame.h
- Revision:
- 70:cd218dd180e5
- Parent:
- 3:b4047e8a0123
- Child:
- 73:dfb737147f6e
--- a/include/pico_frame.h Wed Sep 25 12:20:39 2013 +0000 +++ b/include/pico_frame.h Thu Sep 26 07:05:22 2013 +0000 @@ -36,18 +36,18 @@ uint8_t *datalink_hdr; uint8_t *net_hdr; - int net_len; + uint16_t net_len; uint8_t *transport_hdr; - int transport_len; + uint16_t transport_len; uint8_t *app_hdr; - int app_len; + uint16_t app_len; /* Pointer to the phisical device this packet belongs to. * Should be valid in both routing directions */ struct pico_device *dev; - unsigned long timestamp; + uint64_t timestamp; /* Failures due to bad datalink addressing. */ uint16_t failure_count; @@ -60,7 +60,7 @@ /* Pointer to payload */ unsigned char *payload; - int payload_len; + uint16_t payload_len; #ifdef PICO_SUPPORT_IPFRAG /* Payload fragmentation info (big endian)*/ @@ -81,9 +81,9 @@ void pico_frame_discard(struct pico_frame *f); struct pico_frame *pico_frame_copy(struct pico_frame *f); struct pico_frame *pico_frame_deepcopy(struct pico_frame *f); -struct pico_frame *pico_frame_alloc(int size); -uint16_t pico_checksum(void *inbuf, int len); -uint16_t pico_dualbuffer_checksum(void *b1, int len1, void *b2, int len2); +struct pico_frame *pico_frame_alloc(uint32_t size); +uint16_t pico_checksum(void *inbuf, uint32_t len); +uint16_t pico_dualbuffer_checksum(void *b1, uint32_t len1, void *b2, uint32_t len2); static inline int pico_is_digit(char c) {