minor: unix port removed unused define IPv4
This commit is contained in:
parent
c6c94d27fc
commit
96e27bf4f7
|
@ -73,7 +73,6 @@ tcpdump(struct pbuf *p)
|
||||||
if (file == NULL) {
|
if (file == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef IPv4
|
|
||||||
iphdr = (struct ip_hdr *)p->payload;
|
iphdr = (struct ip_hdr *)p->payload;
|
||||||
switch (IPH_PROTO(iphdr)) {
|
switch (IPH_PROTO(iphdr)) {
|
||||||
#if LWIP_TCP
|
#if LWIP_TCP
|
||||||
|
@ -184,7 +183,6 @@ tcpdump(struct pbuf *p)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif /* IPv4 */
|
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ LWIPDIR=$(CONTRIBDIR)/../lwip/src
|
||||||
|
|
||||||
CCDEP=gcc
|
CCDEP=gcc
|
||||||
CC=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 \
|
-Wparentheses -Wsequence-point -Wswitch-default \
|
||||||
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
|
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
|
||||||
-Wc++-compat -Wwrite-strings -Wold-style-definition \
|
-Wc++-compat -Wwrite-strings -Wold-style-definition \
|
||||||
|
|
|
@ -35,7 +35,7 @@ CC=gcc
|
||||||
#To compile for cygwin: make ARCH=cygwin
|
#To compile for cygwin: make ARCH=cygwin
|
||||||
#To compile for openbsd: make ARCH=openbsd
|
#To compile for openbsd: make ARCH=openbsd
|
||||||
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 \
|
-Wparentheses -Wsequence-point -Wswitch-default \
|
||||||
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
|
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
|
||||||
-Wc++-compat -Wwrite-strings -Wold-style-definition \
|
-Wc++-compat -Wwrite-strings -Wold-style-definition \
|
||||||
|
|
|
@ -35,7 +35,7 @@ CC=gcc
|
||||||
#To compile for linux: make ARCH=linux
|
#To compile for linux: make ARCH=linux
|
||||||
#To compile for cygwin: make ARCH=cygwin
|
#To compile for cygwin: make ARCH=cygwin
|
||||||
ARCH=unix
|
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 \
|
-Wparentheses -Wsequence-point -Wswitch-default \
|
||||||
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
|
-Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast \
|
||||||
-Wc++-compat -Wwrite-strings -Wold-style-definition \
|
-Wc++-compat -Wwrite-strings -Wold-style-definition \
|
||||||
|
|
Loading…
Reference in New Issue