--- ppp-2.4.4/pppd/plugins/rp-pppoe/if.c.normal 2007-06-25 11:07:38 +0200 +++ ppp-2.4.4/pppd/plugins/rp-pppoe/if.c 2007-06-25 11:07:40 +0200 @@ -125,9 +125,14 @@ UINT16_t etherType(PPPoEPacket *packet) { + static int logged; + UINT16_t type = (UINT16_t) ntohs(packet->ethHdr.h_proto); - if (type != Eth_PPPOE_Discovery && type != Eth_PPPOE_Session) { - syslog(LOG_ERR, "Invalid ether type 0x%x", type); + if (!logged && type != Eth_PPPOE_Discovery && type != Eth_PPPOE_Session) { + if (type == 0x0800 || type == 0x0806) { + syslog(LOG_WARNING, "IP traffic detected on this interface (type 0x%x)", type); + logged++; + } } return type; }