mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Minor spelling typos and formatting fixes.
This commit is contained in:
parent
4e40fee1db
commit
886cfbe12d
@ -10,7 +10,7 @@
|
|||||||
* To let mem_malloc() use pools (prevents fragmentation and is much faster than
|
* To let mem_malloc() use pools (prevents fragmentation and is much faster than
|
||||||
* a heap but might waste some memory), define MEM_USE_POOLS to 1, define
|
* a heap but might waste some memory), define MEM_USE_POOLS to 1, define
|
||||||
* MEM_USE_CUSTOM_POOLS to 1 and create a file "lwippools.h" that includes a list
|
* MEM_USE_CUSTOM_POOLS to 1 and create a file "lwippools.h" that includes a list
|
||||||
* of pools like the this (more pools can be added between _START and _END):
|
* of pools like this (more pools can be added between _START and _END):
|
||||||
*
|
*
|
||||||
* Define three pools with sizes 256, 512, and 1512 bytes
|
* Define three pools with sizes 256, 512, and 1512 bytes
|
||||||
* LWIP_MALLOC_MEMPOOL_START
|
* LWIP_MALLOC_MEMPOOL_START
|
||||||
|
@ -412,7 +412,7 @@ udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p,
|
|||||||
|
|
||||||
/* not enough space to add an UDP header to first pbuf in given p chain? */
|
/* not enough space to add an UDP header to first pbuf in given p chain? */
|
||||||
if (pbuf_header(p, UDP_HLEN)) {
|
if (pbuf_header(p, UDP_HLEN)) {
|
||||||
/* allocate header in a seperate new pbuf */
|
/* allocate header in a separate new pbuf */
|
||||||
q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);
|
q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);
|
||||||
/* new header pbuf could not be allocated? */
|
/* new header pbuf could not be allocated? */
|
||||||
if (q == NULL) {
|
if (q == NULL) {
|
||||||
@ -527,7 +527,7 @@ udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p,
|
|||||||
/* TODO: must this be increased even if error occured? */
|
/* TODO: must this be increased even if error occured? */
|
||||||
snmp_inc_udpoutdatagrams();
|
snmp_inc_udpoutdatagrams();
|
||||||
|
|
||||||
/* did we chain a seperate header pbuf earlier? */
|
/* did we chain a separate header pbuf earlier? */
|
||||||
if (q != p) {
|
if (q != p) {
|
||||||
/* free the header pbuf */
|
/* free the header pbuf */
|
||||||
pbuf_free(q);
|
pbuf_free(q);
|
||||||
|
@ -390,8 +390,8 @@
|
|||||||
/**
|
/**
|
||||||
* IP_FRAG_USES_STATIC_BUF==1: Use a static MTU-sized buffer for IP
|
* IP_FRAG_USES_STATIC_BUF==1: Use a static MTU-sized buffer for IP
|
||||||
* fragmentation. Otherwise pbufs are allocated and reference the original
|
* fragmentation. Otherwise pbufs are allocated and reference the original
|
||||||
* packet data to be fragmented.
|
* packet data to be fragmented.
|
||||||
*/
|
*/
|
||||||
#ifndef IP_FRAG_USES_STATIC_BUF
|
#ifndef IP_FRAG_USES_STATIC_BUF
|
||||||
#define IP_FRAG_USES_STATIC_BUF 1
|
#define IP_FRAG_USES_STATIC_BUF 1
|
||||||
#endif
|
#endif
|
||||||
@ -763,7 +763,6 @@
|
|||||||
* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. The default is
|
* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. The default is
|
||||||
* designed to accomodate single full size TCP frame in one pbuf, including
|
* designed to accomodate single full size TCP frame in one pbuf, including
|
||||||
* TCP_MSS, IP header, and link header.
|
* TCP_MSS, IP header, and link header.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
#ifndef PBUF_POOL_BUFSIZE
|
#ifndef PBUF_POOL_BUFSIZE
|
||||||
#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)
|
#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)
|
||||||
|
Loading…
Reference in New Issue
Block a user