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_nat.h
- Revision:
- 131:4758606c9316
- Parent:
- 68:0847e35d08a6
- Child:
- 149:5f4cb161cec3
diff -r 0cee8bdac6d0 -r 4758606c9316 modules/pico_nat.h --- a/modules/pico_nat.h Wed Dec 11 07:20:17 2013 +0000 +++ b/modules/pico_nat.h Mon Dec 16 11:25:54 2013 +0100 @@ -1,11 +1,11 @@ /********************************************************************* -PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved. -See LICENSE and COPYING for usage. + PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved. + See LICENSE and COPYING for usage. -. - -Authors: Kristof Roelants, Simon Maes, Brecht Van Cauwenberghe -*********************************************************************/ + . + + Authors: Kristof Roelants, Simon Maes, Brecht Van Cauwenberghe + *********************************************************************/ #ifndef _INCLUDE_PICO_NAT #define _INCLUDE_PICO_NAT @@ -26,47 +26,47 @@ int pico_ipv4_nat_is_enabled(struct pico_ip4 *link_addr); #else -#define pico_ipv4_nat_print_table() do{}while(0) +#define pico_ipv4_nat_print_table() do {} while(0) static inline int pico_ipv4_nat_inbound(struct pico_frame *f, struct pico_ip4 *link_addr) { - pico_err = PICO_ERR_EPROTONOSUPPORT; - return -1; + pico_err = PICO_ERR_EPROTONOSUPPORT; + return -1; } static inline int pico_ipv4_nat_outbound(struct pico_frame *f, struct pico_ip4 *link_addr) { - pico_err = PICO_ERR_EPROTONOSUPPORT; - return -1; + pico_err = PICO_ERR_EPROTONOSUPPORT; + return -1; } static inline int pico_ipv4_nat_enable(struct pico_ipv4_link *link) { - pico_err = PICO_ERR_EPROTONOSUPPORT; - return -1; + pico_err = PICO_ERR_EPROTONOSUPPORT; + return -1; } static inline int pico_ipv4_nat_disable(void) { - pico_err = PICO_ERR_EPROTONOSUPPORT; - return -1; + pico_err = PICO_ERR_EPROTONOSUPPORT; + return -1; } static inline int pico_ipv4_nat_is_enabled(struct pico_ip4 *link_addr) { - pico_err = PICO_ERR_EPROTONOSUPPORT; - return -1; + pico_err = PICO_ERR_EPROTONOSUPPORT; + return -1; } static inline int pico_ipv4_nat_find(uint16_t nat_port, struct pico_ip4 *src_addr, uint16_t src_port, uint8_t proto) { - pico_err = PICO_ERR_EPROTONOSUPPORT; - return -1; + pico_err = PICO_ERR_EPROTONOSUPPORT; + return -1; } static inline int pico_ipv4_port_forward(struct pico_ip4 nat_addr, uint16_t nat_port, struct pico_ip4 src_addr, uint16_t src_port, uint8_t proto, uint8_t flag) { - pico_err = PICO_ERR_EPROTONOSUPPORT; - return -1; + pico_err = PICO_ERR_EPROTONOSUPPORT; + return -1; } #endif