mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-12 01:29:28 +00:00
Spelling fixes from Marc Boucher
This commit is contained in:
parent
1c8808e73f
commit
c1d9d1e71f
|
@ -328,7 +328,7 @@ low_level_input(struct netif *ethernetif)
|
||||||
start=0;
|
start=0;
|
||||||
for(q = p; q != NULL; q = q->next) {
|
for(q = p; q != NULL; q = q->next) {
|
||||||
/* Read enough bytes to fill this pbuf in the chain. The
|
/* Read enough bytes to fill this pbuf in the chain. The
|
||||||
avaliable data in the pbuf is given by the q->len
|
available data in the pbuf is given by the q->len
|
||||||
variable. */
|
variable. */
|
||||||
/* read data into(q->payload, q->len); */
|
/* read data into(q->payload, q->len); */
|
||||||
#ifdef NETIF_DEBUG
|
#ifdef NETIF_DEBUG
|
||||||
|
|
|
@ -62,7 +62,7 @@ APIFILES=$(LWIPDIR)/api/api_lib.c $(LWIPDIR)/api/api_msg.c $(LWIPDIR)/api/tcpip.
|
||||||
NETIFFILES=$(LWIPDIR)/netif/loopif.c \
|
NETIFFILES=$(LWIPDIR)/netif/loopif.c \
|
||||||
$(LWIPDIR)/netif/etharp.c
|
$(LWIPDIR)/netif/etharp.c
|
||||||
|
|
||||||
# ARCHFILES: Archiecture specific files.
|
# ARCHFILES: Architecture specific files.
|
||||||
ARCHFILES=$(wildcard $(LWIPDIR)/arch/$(LWIPARCH)/*.c $(LWIPDIR)/arch/$(LWIPARCH)/netif/*.c)
|
ARCHFILES=$(wildcard $(LWIPDIR)/arch/$(LWIPARCH)/*.c $(LWIPDIR)/arch/$(LWIPARCH)/netif/*.c)
|
||||||
|
|
||||||
# LWIPFILES: All the above.
|
# LWIPFILES: All the above.
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
|
|
||||||
CCDEP=gcc
|
CCDEP=gcc
|
||||||
CC=gcc
|
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 -Os -fpack-struct
|
CFLAGS=-g -Wall -D$(ARCH) -DIPv4 -Os -fpack-struct
|
||||||
ARFLAGS=rs
|
ARFLAGS=rs
|
||||||
|
|
|
@ -200,7 +200,7 @@ low_level_input(struct mintapif *mintapif)
|
||||||
bufptr = &buf[0];
|
bufptr = &buf[0];
|
||||||
for(q = p; q != NULL; q = q->next) {
|
for(q = p; q != NULL; q = q->next) {
|
||||||
/* Read enough bytes to fill this pbuf in the chain. The
|
/* Read enough bytes to fill this pbuf in the chain. The
|
||||||
avaliable data in the pbuf is given by the q->len
|
available data in the pbuf is given by the q->len
|
||||||
variable. */
|
variable. */
|
||||||
/* read data into(q->payload, q->len); */
|
/* read data into(q->payload, q->len); */
|
||||||
memcpy(q->payload, bufptr, q->len);
|
memcpy(q->payload, bufptr, q->len);
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
CCDEP=gcc
|
CCDEP=gcc
|
||||||
CC=gcc
|
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
|
CFLAGS=-g -Wall -D$(ARCH) -DIPv4 -DLWIP_DEBUG -pedantic
|
||||||
LDFLAGS=-lpcap
|
LDFLAGS=-lpcap
|
||||||
|
@ -65,7 +65,7 @@ APIFILES=$(LWIPDIR)/api/api_lib.c $(LWIPDIR)/api/api_msg.c $(LWIPDIR)/api/tcpip.
|
||||||
NETIFFILES=$(LWIPDIR)/netif/loopif.c \
|
NETIFFILES=$(LWIPDIR)/netif/loopif.c \
|
||||||
$(LWIPDIR)/netif/etharp.c $(LWIPDIR)/netif/slipif.c
|
$(LWIPDIR)/netif/etharp.c $(LWIPDIR)/netif/slipif.c
|
||||||
|
|
||||||
# ARCHFILES: Archiecture specific files.
|
# ARCHFILES: Architecture specific files.
|
||||||
ARCHFILES=$(wildcard $(LWIPARCH)/*.c $(LWIPARCH)/netif/*.c)
|
ARCHFILES=$(wildcard $(LWIPARCH)/*.c $(LWIPARCH)/netif/*.c)
|
||||||
|
|
||||||
# APPFILES: Applications.
|
# APPFILES: Applications.
|
||||||
|
|
|
@ -72,7 +72,7 @@ send_data(struct tcp_pcb *pcb, struct http_state *hs)
|
||||||
err_t err;
|
err_t err;
|
||||||
u16_t len;
|
u16_t len;
|
||||||
|
|
||||||
/* We cannot send more data than space avaliable in the send
|
/* We cannot send more data than space available in the send
|
||||||
buffer. */
|
buffer. */
|
||||||
if(tcp_sndbuf(pcb) < hs->left) {
|
if(tcp_sndbuf(pcb) < hs->left) {
|
||||||
len = tcp_sndbuf(pcb);
|
len = tcp_sndbuf(pcb);
|
||||||
|
|
|
@ -64,7 +64,7 @@ struct command {
|
||||||
#define NCONNS 10
|
#define NCONNS 10
|
||||||
static struct netconn *conns[NCONNS];
|
static struct netconn *conns[NCONNS];
|
||||||
|
|
||||||
static char help_msg[] = "Avaliable commands:\n\
|
static char help_msg[] = "Available commands:\n\
|
||||||
open [IP address] [TCP port]: opens a TCP connection to the specified address.\n\
|
open [IP address] [TCP port]: opens a TCP connection to the specified address.\n\
|
||||||
lstn [TCP port]: sets up a server on the specified port.\n\
|
lstn [TCP port]: sets up a server on the specified port.\n\
|
||||||
acpt [connection #]: waits for an incoming connection request.\n\
|
acpt [connection #]: waits for an incoming connection request.\n\
|
||||||
|
@ -152,57 +152,57 @@ static char *stat_msgs[] = {
|
||||||
" reclaimed ",
|
" reclaimed ",
|
||||||
" pbuf_alloc() locked ",
|
" pbuf_alloc() locked ",
|
||||||
" pbuf_refresh() locked ",
|
" pbuf_refresh() locked ",
|
||||||
"Memory * avaliable ",
|
"Memory * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"Memp PBUF * avaliable ",
|
"Memp PBUF * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"UDP PCB * avaliable ",
|
"UDP PCB * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"TCP PCB * avaliable ",
|
"TCP PCB * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"TCP LISTEN * avaliable ",
|
"TCP LISTEN * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"TCP SEG * avaliable ",
|
"TCP SEG * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"Netbufs * avaliable ",
|
"Netbufs * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"Netconns * avaliable ",
|
"Netconns * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"API msgs * avaliable ",
|
"API msgs * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"TCPIP msgs * avaliable ",
|
"TCPIP msgs * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
" * reclaimed ",
|
" * reclaimed ",
|
||||||
"Timeouts * avaliable ",
|
"Timeouts * available ",
|
||||||
" * used ",
|
" * used ",
|
||||||
" * high water mark ",
|
" * high water mark ",
|
||||||
" * errors ",
|
" * errors ",
|
||||||
|
@ -239,7 +239,7 @@ com_open(struct command *com)
|
||||||
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
||||||
|
|
||||||
if(i == NCONNS) {
|
if(i == NCONNS) {
|
||||||
sendstr("No more connections avaliable, sorry.\n", com->conn);
|
sendstr("No more connections available, sorry.\n", com->conn);
|
||||||
return ESUCCESS;
|
return ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ com_lstn(struct command *com)
|
||||||
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
||||||
|
|
||||||
if(i == NCONNS) {
|
if(i == NCONNS) {
|
||||||
sendstr("No more connections avaliable, sorry.\n", com->conn);
|
sendstr("No more connections available, sorry.\n", com->conn);
|
||||||
return ESUCCESS;
|
return ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -383,7 +383,7 @@ com_acpt(struct command *com)
|
||||||
for(j = 0; j < NCONNS && conns[j] != NULL; j++);
|
for(j = 0; j < NCONNS && conns[j] != NULL; j++);
|
||||||
|
|
||||||
if(j == NCONNS) {
|
if(j == NCONNS) {
|
||||||
sendstr("No more connections avaliable, sorry.\n", com->conn);
|
sendstr("No more connections available, sorry.\n", com->conn);
|
||||||
return ESUCCESS;
|
return ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -540,7 +540,7 @@ com_udpc(struct command *com)
|
||||||
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
||||||
|
|
||||||
if(i == NCONNS) {
|
if(i == NCONNS) {
|
||||||
sendstr("No more connections avaliable, sorry.\n", com->conn);
|
sendstr("No more connections available, sorry.\n", com->conn);
|
||||||
return ESUCCESS;
|
return ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -612,7 +612,7 @@ com_udpl(struct command *com)
|
||||||
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
||||||
|
|
||||||
if(i == NCONNS) {
|
if(i == NCONNS) {
|
||||||
sendstr("No more connections avaliable, sorry.\n", com->conn);
|
sendstr("No more connections available, sorry.\n", com->conn);
|
||||||
return ESUCCESS;
|
return ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -684,7 +684,7 @@ com_udpn(struct command *com)
|
||||||
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
||||||
|
|
||||||
if(i == NCONNS) {
|
if(i == NCONNS) {
|
||||||
sendstr("No more connections avaliable, sorry.\n", com->conn);
|
sendstr("No more connections available, sorry.\n", com->conn);
|
||||||
return ESUCCESS;
|
return ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -757,7 +757,7 @@ com_udpb(struct command *com)
|
||||||
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
for(i = 0; i < NCONNS && conns[i] != NULL; i++);
|
||||||
|
|
||||||
if(i == NCONNS) {
|
if(i == NCONNS) {
|
||||||
sendstr("No more connections avaliable, sorry.\n", com->conn);
|
sendstr("No more connections available, sorry.\n", com->conn);
|
||||||
return ESUCCESS;
|
return ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user