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 RTOS
  • generic mbed Ethernet driver
  • high performance NXP LPC1768 specific Ethernet driver
  • Multi-threading support for mbed RTOS
  • Berkeley sockets and integration with the New Socket API
  • Fork of the apps running on top of the New Socket API
  • Scheduling 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.

Revision:
152:a3d286bf94e5
Parent:
149:5f4cb161cec3
Child:
154:6c0e92a80c4a
--- a/modules/pico_dhcp_common.h	Wed Apr 09 17:32:25 2014 +0200
+++ b/modules/pico_dhcp_common.h	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.
 
    .
@@ -57,7 +57,7 @@
 #define PICO_DHCP_OPTLEN_OPTOVERLOAD    3
 #define PICO_DHCP_OPTLEN_MSGTYPE        3
 #define PICO_DHCP_OPTLEN_SERVERID       6
-#define PICO_DHCP_OPTLEN_PARAMLIST      8 /* PicoTCP specific */
+#define PICO_DHCP_OPTLEN_PARAMLIST      9 /* PicoTCP specific */
 #define PICO_DHCP_OPTLEN_MAXMSGSIZE     4
 #define PICO_DHCP_OPTLEN_RENEWALTIME    6
 #define PICO_DHCP_OPTLEN_REBINDINGTIME  6
@@ -82,6 +82,7 @@
 #define PICO_DHCP_EVENT_T2              10
 #define PICO_DHCP_EVENT_LEASE           11
 #define PICO_DHCP_EVENT_RETRANSMIT      12
+#define PICO_DHCP_EVENT_NONE            0xff
 
 PACKED_STRUCT_DEF pico_dhcp_hdr
 {
@@ -108,59 +109,60 @@
 {
     uint8_t code;
     uint8_t len;
-    union dhcp_opt_ext_u {
-        struct {
+    PACKED_UNION_DEF dhcp_opt_ext_u {
+        PEDANTIC_STRUCT_DEF netmask_s {
             struct pico_ip4 ip;
         } netmask;
-        struct {
+        PEDANTIC_STRUCT_DEF router_s {
             struct pico_ip4 ip;
         } router;
-        struct {
+        PEDANTIC_STRUCT_DEF dns_s {
             struct pico_ip4 ip;
-        } dns;
-        struct {
+        } dns1;
+        struct dns_s dns2;
+        PEDANTIC_STRUCT_DEF broadcast_s {
             struct pico_ip4 ip;
         } broadcast;
-        struct {
+        PEDANTIC_STRUCT_DEF req_ip_s {
             struct pico_ip4 ip;
         } req_ip;
-        struct {
+        PEDANTIC_STRUCT_DEF lease_time_s {
             uint32_t time;
         } lease_time;
-        struct {
+        PEDANTIC_STRUCT_DEF opt_overload_s {
             uint8_t value;
         } opt_overload;
-        struct {
+        PEDANTIC_STRUCT_DEF tftp_server_s {
             char name[1];
         } tftp_server;
-        struct {
+        PEDANTIC_STRUCT_DEF bootfile_s {
             char name[1];
         } bootfile;
-        struct {
+        PEDANTIC_STRUCT_DEF msg_type_s {
             uint8_t type;
         } msg_type;
-        struct {
+        PEDANTIC_STRUCT_DEF server_id_s {
             struct pico_ip4 ip;
         } server_id;
-        struct {
+        PEDANTIC_STRUCT_DEF param_list_s {
             uint8_t code[1];
         } param_list;
-        struct {
+        PEDANTIC_STRUCT_DEF message_s {
             char error[1];
         } message;
-        struct {
+        PEDANTIC_STRUCT_DEF max_msg_size_s {
             uint16_t size;
         } max_msg_size;
-        struct {
+        PEDANTIC_STRUCT_DEF renewal_time_s {
             uint32_t time;
         } renewal_time;
-        struct {
+        PEDANTIC_STRUCT_DEF rebinding_time_s {
             uint32_t time;
         } rebinding_time;
-        struct {
+        PEDANTIC_STRUCT_DEF vendor_id_s {
             uint8_t id[1];
         } vendor_id;
-        struct {
+        PEDANTIC_STRUCT_DEF client_id_s {
             uint8_t id[1];
         } client_id;
     } ext;