minor: unix port removed unused define IPv4

This commit is contained in:
Simon Goldschmidt 2014-09-17 22:14:57 +02:00
parent c6c94d27fc
commit 96e27bf4f7
4 changed files with 3 additions and 5 deletions

View File

@ -73,7 +73,6 @@ tcpdump(struct pbuf *p)
if (file == NULL) {
return;
}
#ifdef IPv4
iphdr = (struct ip_hdr *)p->payload;
switch (IPH_PROTO(iphdr)) {
#if LWIP_TCP
@ -184,7 +183,6 @@ tcpdump(struct pbuf *p)
break;
}
#endif /* IPv4 */
}
/*-----------------------------------------------------------------------------------*/

View File

@ -39,7 +39,7 @@ LWIPDIR=$(CONTRIBDIR)/../lwip/src
CCDEP=gcc
CC=gcc
CFLAGS=-g -Wall -DIPv4 -DLWIP_DEBUG -fPIC -pedantic -Werror \
CFLAGS=-g -Wall -DLWIP_DEBUG -fPIC -pedantic -Werror \
-Wparentheses -Wsequence-point -Wswitch-default \
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
-Wc++-compat -Wwrite-strings -Wold-style-definition \

View File

@ -35,7 +35,7 @@ CC=gcc
#To compile for cygwin: make ARCH=cygwin
#To compile for openbsd: make ARCH=openbsd
ARCH=openbsd
CFLAGS=-g -Wall -D$(ARCH) -DIPv4 -Os -DLWIP_DEBUG -pedantic -Werror \
CFLAGS=-g -Wall -D$(ARCH) -Os -DLWIP_DEBUG -pedantic -Werror \
-Wparentheses -Wsequence-point -Wswitch-default \
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
-Wc++-compat -Wwrite-strings -Wold-style-definition \

View File

@ -35,7 +35,7 @@ CC=gcc
#To compile for linux: make ARCH=linux
#To compile for cygwin: make ARCH=cygwin
ARCH=unix
CFLAGS=-g -Wall -D$(ARCH) -DIPv4 -DLWIP_DEBUG -pedantic -Werror \
CFLAGS=-g -Wall -D$(ARCH) -DLWIP_DEBUG -pedantic -Werror \
-Wparentheses -Wsequence-point -Wswitch-default \
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
-Wc++-compat -Wwrite-strings -Wold-style-definition \