mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-06 00:39:59 +00:00
Added PPPoE support to ethernet_input()
This commit is contained in:
parent
95cbf95c50
commit
58bfb0458e
@ -44,6 +44,7 @@
|
|||||||
#include "lwip/pbuf.h"
|
#include "lwip/pbuf.h"
|
||||||
|
|
||||||
#include "netif/etharp.h"
|
#include "netif/etharp.h"
|
||||||
|
#include "netif/ppp_oe.h"
|
||||||
|
|
||||||
#include "lwip/ip.h"
|
#include "lwip/ip.h"
|
||||||
#include "lwip/ip_frag.h"
|
#include "lwip/ip_frag.h"
|
||||||
@ -244,6 +245,15 @@ ethernet_input(struct pbuf *p, struct netif *netif)
|
|||||||
etharp_arp_input(netif, (struct eth_addr*)(netif->hwaddr), p);
|
etharp_arp_input(netif, (struct eth_addr*)(netif->hwaddr), p);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if PPPOE_SUPPORT > 0
|
||||||
|
case ETHTYPE_PPPOEDISC: /* PPP Over Ethernet Discovery Stage */
|
||||||
|
pppoe_disc_input(netif, p);
|
||||||
|
break;
|
||||||
|
case ETHTYPE_PPPOE: /* PPP Over Ethernet Session Stage */
|
||||||
|
pppoe_data_input(netif, p);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
p = NULL;
|
p = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user