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.
modules/pico_nat.h
- Committer:
- tass
- Date:
- 2013-10-18
- Revision:
- 101:37763e3777a7
- Parent:
- 68:0847e35d08a6
- Child:
- 131:4758606c9316
File content as of revision 101:37763e3777a7:
/********************************************************************* PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved. See LICENSE and COPYING for usage. . Authors: Kristof Roelants, Simon Maes, Brecht Van Cauwenberghe *********************************************************************/ #ifndef _INCLUDE_PICO_NAT #define _INCLUDE_PICO_NAT #include "pico_frame.h" #define PICO_NAT_PORT_FORWARD_DEL 0 #define PICO_NAT_PORT_FORWARD_ADD 1 #ifdef PICO_SUPPORT_NAT void pico_ipv4_nat_print_table(void); int pico_ipv4_nat_find(uint16_t nat_port, struct pico_ip4 *src_addr, uint16_t src_port, uint8_t proto); 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); int pico_ipv4_nat_inbound(struct pico_frame *f, struct pico_ip4 *link_addr); int pico_ipv4_nat_outbound(struct pico_frame *f, struct pico_ip4 *link_addr); int pico_ipv4_nat_enable(struct pico_ipv4_link *link); int pico_ipv4_nat_disable(void); int pico_ipv4_nat_is_enabled(struct pico_ip4 *link_addr); #else #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; } static inline int pico_ipv4_nat_outbound(struct pico_frame *f, struct pico_ip4 *link_addr) { 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; } static inline int pico_ipv4_nat_disable(void) { 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; } 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; } 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; } #endif #endif /* _INCLUDE_PICO_NAT */