mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Minor fix (spaces and comment)
This commit is contained in:
parent
42f3c24fc4
commit
2f344268ff
@ -226,20 +226,20 @@ ethernetif_input(struct netif *netif)
|
|||||||
struct pbuf *p;
|
struct pbuf *p;
|
||||||
|
|
||||||
ethernetif = netif->state;
|
ethernetif = netif->state;
|
||||||
|
|
||||||
/* move received packet into a new pbuf */
|
/* move received packet into a new pbuf */
|
||||||
p = low_level_input(netif);
|
p = low_level_input(netif);
|
||||||
/* no packet could be read, silently ignore this */
|
/* no packet could be read, silently ignore this */
|
||||||
if (p == NULL) return;
|
if (p == NULL) return;
|
||||||
/* points to packet payload, which starts with an Ethernet header */
|
/* points to packet payload, which starts with an Ethernet header */
|
||||||
ethhdr = p->payload;
|
ethhdr = p->payload;
|
||||||
|
|
||||||
switch (htons(ethhdr->type)) {
|
|
||||||
|
|
||||||
|
switch (htons(ethhdr->type)) {
|
||||||
/* IP or ARP packet? */
|
/* IP or ARP packet? */
|
||||||
case ETHTYPE_IP:
|
case ETHTYPE_IP:
|
||||||
case ETHTYPE_ARP:
|
case ETHTYPE_ARP:
|
||||||
#if PPPOE_SUPPORT
|
#if PPPOE_SUPPORT
|
||||||
|
/* PPPoE packet? */
|
||||||
case ETHTYPE_PPPOEDISC:
|
case ETHTYPE_PPPOEDISC:
|
||||||
case ETHTYPE_PPPOE:
|
case ETHTYPE_PPPOE:
|
||||||
#endif /* PPPOE_SUPPORT */
|
#endif /* PPPOE_SUPPORT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user