From 0227d13f35ae37124e75e54748122232b67c74e0 Mon Sep 17 00:00:00 2001 From: likewise Date: Thu, 2 Oct 2003 22:47:25 +0000 Subject: [PATCH] Made compilable with 0.6.4. --- ports/unix/proj/minimal/Makefile | 3 ++- ports/unix/proj/minimal/lwipopts.h | 6 +++--- ports/unix/proj/minimal/main.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ports/unix/proj/minimal/Makefile b/ports/unix/proj/minimal/Makefile index 4025c61..186ca6d 100644 --- a/ports/unix/proj/minimal/Makefile +++ b/ports/unix/proj/minimal/Makefile @@ -54,7 +54,8 @@ COREFILES=$(LWIPDIR)/core/mem.c $(LWIPDIR)/core/memp.c $(LWIPDIR)/core/netif.c \ $(LWIPDIR)/core/tcp.c $(LWIPDIR)/core/tcp_in.c \ $(LWIPDIR)/core/tcp_out.c $(LWIPDIR)/core/udp.c CORE4FILES=$(LWIPDIR)/core/ipv4/icmp.c $(LWIPDIR)/core/ipv4/ip.c \ - $(LWIPDIR)/core/inet.c $(LWIPDIR)/core/ipv4/ip_addr.c + $(LWIPDIR)/core/inet.c $(LWIPDIR)/core/ipv4/ip_addr.c \ + $(LWIPDIR)/core/ipv4/ip_frag.c # NETIFFILES: Files implementing various generic network interface functions.' NETIFFILES=$(LWIPDIR)/netif/etharp.c mintapif.c diff --git a/ports/unix/proj/minimal/lwipopts.h b/ports/unix/proj/minimal/lwipopts.h index d2903f0..03d5cd8 100644 --- a/ports/unix/proj/minimal/lwipopts.h +++ b/ports/unix/proj/minimal/lwipopts.h @@ -76,7 +76,7 @@ a lot of data that needs to be copied, this should be set high. */ for sequential API communication and incoming packets. Used in src/api/tcpip.c. */ #define MEMP_NUM_TCPIP_MSG 0 -/* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active +/* MEMP_NUM_SYS_TIMEOUT: the number of simultaneously active timeouts. */ #define MEMP_NUM_SYS_TIMEOUT 0 @@ -137,7 +137,7 @@ a lot of data that needs to be copied, this should be set high. */ on a device with only one network interface, define this to 0. */ #define IP_FORWARD 0 -/* If defined to 1, IP options are allowed (but not parsed). If +/* If defined to 1, IP options are allowed (but ignored). If defined to 0, all packets with IP options are dropped. */ #define IP_OPTIONS 1 @@ -156,7 +156,7 @@ a lot of data that needs to be copied, this should be set high. */ #define DHCP_DOES_ARP_CHECK 1 /* ---------- UDP options ---------- */ -#define LWIP_UDP 0 +#define LWIP_UDP 1 #define UDP_TTL 255 diff --git a/ports/unix/proj/minimal/main.c b/ports/unix/proj/minimal/main.c index 970e558..864d5d8 100644 --- a/ports/unix/proj/minimal/main.c +++ b/ports/unix/proj/minimal/main.c @@ -39,6 +39,7 @@ #include "lwip/stats.h" #include "lwip/ip.h" +/*#include "lwip/ip_frag.h"*/ #include "lwip/udp.h" #include "lwip/tcp.h"