Free (GPLv2) TCP/IP stack developed by TASS Belgium

Fork of PicoTCP by Daniele Lacamera

Files at this revision

API Documentation at this revision

Comitter:
daniele
Date:
Sun Jun 09 08:01:58 2013 +0000
Parent:
20:3fa3db9fd4a4
Child:
22:6d0d7ab4aa6d
Commit message:
Disabled by default CRC checking, IP fragmentation, IP filters

Changed in this revision

include/pico_config.h Show annotated file Show diff for this revision Revisions of this file
include/pico_socket.h Show annotated file Show diff for this revision Revisions of this file
modules/pico_icmp4.c Show annotated file Show diff for this revision Revisions of this file
--- a/include/pico_config.h	Sat Jun 08 13:48:10 2013 +0000
+++ b/include/pico_config.h	Sun Jun 09 08:01:58 2013 +0000
@@ -12,7 +12,7 @@
 
 
 #define MBED
-#define PICO_SUPPORT_CRC
+//#define PICO_SUPPORT_CRC
 #define PICO_SUPPORT_DEVLOOP
 #define PICO_SUPPORT_DHCPC
 #define PICO_SUPPORT_DHCPD
@@ -23,8 +23,8 @@
 #define PICO_SUPPORT_ICMP4
 #define PICO_SUPPORT_PING
 #define PICO_SUPPORT_IGMP2
-#define PICO_SUPPORT_IPFILTER
-#define PICO_SUPPORT_IPFRAG
+//#define PICO_SUPPORT_IPFILTER
+//#define PICO_SUPPORT_IPFRAG
 #define PICO_SUPPORT_IPV4
 #define PICO_SUPPORT_MCAST
 #define PICO_SUPPORT_NAT
--- a/include/pico_socket.h	Sat Jun 08 13:48:10 2013 +0000
+++ b/include/pico_socket.h	Sun Jun 09 08:01:58 2013 +0000
@@ -11,7 +11,7 @@
 #include "pico_protocol.h"
 
 //#define PICO_DEFAULT_SOCKETQ (128 * 1024)
-#define PICO_DEFAULT_SOCKETQ (8192)
+#define PICO_DEFAULT_SOCKETQ (16 * 1024)
 
 
 #define PICO_SHUT_RD   1
--- a/modules/pico_icmp4.c	Sat Jun 08 13:48:10 2013 +0000
+++ b/modules/pico_icmp4.c	Sun Jun 09 08:01:58 2013 +0000
@@ -134,14 +134,14 @@
   return pico_icmp4_notify(f, PICO_ICMP_TIME_EXCEEDED, PICO_ICMP_TIMXCEED_INTRANS);
 }
 
-#ifdef PICO_SUPPORT_IPFILTER
+
 int pico_icmp4_packet_filtered(struct pico_frame *f)
 {
   /*Parameter check executed in pico_icmp4_notify*/
   /*Packet Filtered: type 3, code 13 (Communication Administratively Prohibited)*/
   return pico_icmp4_notify(f, PICO_ICMP_UNREACH, PICO_ICMP_UNREACH_FILTER_PROHIB);
 }
-#endif
+
 
 /***********************/
 /* Ping implementation */