]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Added PPPoE support to ethernet_input()
authormarcbou <marcbou>
Thu, 16 Aug 2007 19:16:03 +0000 (19:16 +0000)
committermarcbou <marcbou>
Thu, 16 Aug 2007 19:16:03 +0000 (19:16 +0000)
src/api/tcpip.c

index 38fa6e4a6ea17babb7591b7fe74d21055c8c8b1f..10b586c8269f9e07f9519eb93c036c086b56ecec 100644 (file)
@@ -44,6 +44,7 @@
 #include "lwip/pbuf.h"
 
 #include "netif/etharp.h"
+#include "netif/ppp_oe.h"
 
 #include "lwip/ip.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);
       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:
       pbuf_free(p);
       p = NULL;