Home | History | Annotate | Download | only in rp-pppoe

Lines Matching full:pppoe

2  * Perform PPPoE discovery
18 #include "pppoe.h"
67 * packet -- a received PPPoE packet
74 * Note that the ethernet type names come from "pppoe.h" and the packet
76 * with the rest of this file. See the BSD section of "pppoe.h" for
127 rp_fatal("Cannot create raw socket -- pppoe must be run as root.");
252 * packet -- the PPPoE discovery packet to parse
258 * Parses a PPPoE discovery packet, calling "func" for each tag in the packet.
269 fprintf(stderr, "Invalid PPPoE version (%d)\n",
274 fprintf(stderr, "Invalid PPPoE type (%d)\n",
280 if (len > ETH_JUMBO_LEN - PPPOE_OVERHEAD) { /* 6-byte overhead for PPPoE header */
281 fprintf(stderr, "Invalid PPPoE packet length (%u)\n", len);
295 fprintf(stderr, "Invalid PPPoE tag length (%u)\n", tagLen);
333 * conn -- PPPoE connection info
334 * packet -- a received PPPoE packet
336 * 1 if packet is for this PPPoE daemon; 0 otherwise.
549 fprintf(stderr, "Bogus PPPoE length field (%u)\n",
607 * conn -- PPPoE connection info structure
611 * Performs the PPPoE discovery phase
665 fprintf(conn->debugFile, "pppoe-discovery %s\n", RP_VERSION);
722 fprintf(stderr, "Usage: pppoe-discovery [options]\n");