mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Minor fix (tab, indent...) to respect source code style...
This commit is contained in:
parent
e895aa71a4
commit
05ea5f05ae
@ -3,7 +3,7 @@ api/ - The code for the high-level wrapper API. Not needed if
|
|||||||
|
|
||||||
core/ - The core of the TPC/IP stack; protocol implementations,
|
core/ - The core of the TPC/IP stack; protocol implementations,
|
||||||
memory and buffer management, and the low-level raw API.
|
memory and buffer management, and the low-level raw API.
|
||||||
|
|
||||||
include/ - lwIP include files.
|
include/ - lwIP include files.
|
||||||
|
|
||||||
netif/ - Generic network interface device drivers are kept here,
|
netif/ - Generic network interface device drivers are kept here,
|
||||||
|
@ -181,6 +181,6 @@ u8_t netif_is_up(struct netif *netif);
|
|||||||
* Set callback to be called when interface is brought up/down
|
* Set callback to be called when interface is brought up/down
|
||||||
*/
|
*/
|
||||||
void netif_set_status_callback( struct netif *netif, void (* status_callback)(struct netif *netif ));
|
void netif_set_status_callback( struct netif *netif, void (* status_callback)(struct netif *netif ));
|
||||||
#endif /* LWIP_NETIF_CALLBACK */
|
#endif /* LWIP_NETIF_CALLBACK */
|
||||||
|
|
||||||
#endif /* __LWIP_NETIF_H__ */
|
#endif /* __LWIP_NETIF_H__ */
|
||||||
|
@ -21,5 +21,5 @@ loopif.c
|
|||||||
slipif.c
|
slipif.c
|
||||||
A generic implementation of the SLIP (Serial Line IP)
|
A generic implementation of the SLIP (Serial Line IP)
|
||||||
protocol. It requires a sio (serial I/O) module to work.
|
protocol. It requires a sio (serial I/O) module to work.
|
||||||
|
|
||||||
ppp/ Point-to-Point Protocol stack
|
ppp/ Point-to-Point Protocol stack
|
||||||
|
@ -103,7 +103,7 @@ low_level_output(struct netif *netif, struct pbuf *p)
|
|||||||
initiate transfer();
|
initiate transfer();
|
||||||
|
|
||||||
#if ETH_PAD_SIZE
|
#if ETH_PAD_SIZE
|
||||||
pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
|
pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(q = p; q != NULL; q = q->next) {
|
for(q = p; q != NULL; q = q->next) {
|
||||||
@ -116,7 +116,7 @@ low_level_output(struct netif *netif, struct pbuf *p)
|
|||||||
signal that packet should be sent();
|
signal that packet should be sent();
|
||||||
|
|
||||||
#if ETH_PAD_SIZE
|
#if ETH_PAD_SIZE
|
||||||
pbuf_header(p, ETH_PAD_SIZE); /* reclaim the padding word */
|
pbuf_header(p, ETH_PAD_SIZE); /* reclaim the padding word */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINK_STATS
|
#if LINK_STATS
|
||||||
@ -146,7 +146,7 @@ low_level_input(struct netif *netif)
|
|||||||
len = ;
|
len = ;
|
||||||
|
|
||||||
#if ETH_PAD_SIZE
|
#if ETH_PAD_SIZE
|
||||||
len += ETH_PAD_SIZE; /* allow room for Ethernet padding */
|
len += ETH_PAD_SIZE; /* allow room for Ethernet padding */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* We allocate a pbuf chain of pbufs from the pool. */
|
/* We allocate a pbuf chain of pbufs from the pool. */
|
||||||
@ -155,7 +155,7 @@ low_level_input(struct netif *netif)
|
|||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
|
|
||||||
#if ETH_PAD_SIZE
|
#if ETH_PAD_SIZE
|
||||||
pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
|
pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* We iterate over the pbuf chain until we have read the entire
|
/* We iterate over the pbuf chain until we have read the entire
|
||||||
@ -296,10 +296,9 @@ ethernetif_init(struct netif *netif)
|
|||||||
|
|
||||||
ethernetif = mem_malloc(sizeof(struct ethernetif));
|
ethernetif = mem_malloc(sizeof(struct ethernetif));
|
||||||
|
|
||||||
if (ethernetif == NULL)
|
if (ethernetif == NULL) {
|
||||||
{
|
LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_init: out of memory\n"));
|
||||||
LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_init: out of memory\n"));
|
return ERR_MEM;
|
||||||
return ERR_MEM;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LWIP_NETIF_HOSTNAME
|
#if LWIP_NETIF_HOSTNAME
|
||||||
|
Loading…
Reference in New Issue
Block a user