Lines Matching refs:pppoe
5 * pppd plugin for kernel-mode PPPoE on Linux
10 * Much code and many ideas derived from pppoe plugin by Michal
30 #include "pppoe.h"
74 "PPPoE device name",
77 { "pppoe-service", o_string, &pppd_pppoe_service,
78 "Desired PPPoE service name" },
80 "Legacy alias for pppoe-service", OPT_ALIAS },
81 { "pppoe-ac", o_string, &acName,
82 "Desired PPPoE access concentrator name" },
84 "Legacy alias for pppoe-ac", OPT_ALIAS },
85 { "pppoe-sess", o_string, &existingSession,
88 "Legacy alias for pppoe-sess", OPT_ALIAS },
89 { "pppoe-verbose", o_int, &pppoe_verbose,
92 "Legacy alias for pppoe-verbose", OPT_ALIAS },
93 { "pppoe-mac", o_string, &pppoe_reqd_mac,
95 { "pppoe-host-uniq", o_string, &pppoe_host_uniq,
98 "Legacy alias for pppoe-host-uniq", OPT_ALIAS },
99 { "pppoe-padi-timeout", o_int, &pppoe_padi_timeout,
101 { "pppoe-padi-attempts", o_int, &pppoe_padi_attempts,
115 * Initializes PPPoE device.
122 novm("PPPoE session data");
138 * Connects PPPoE device.
155 error("Failed to create PPPoE socket: %m");
184 fatal("Illegal value for pppoe-host-uniq option");
202 fatal("Illegal value for pppoe-sess option");
212 error("Failed to create PPPoE discovery socket: %m");
220 error("Unable to complete PPPoE Discovery phase 1");
228 error("Unable to complete PPPoE Discovery phase 2");
233 /* Set PPPoE session-number for further consumption */
238 sp.sa_addr.pppoe.sid = conn->session;
239 memcpy(sp.sa_addr.pppoe.dev, conn->ifName, IFNAMSIZ);
240 memcpy(sp.sa_addr.pppoe.remote, conn->peerEth, ETH_ALEN);
259 error("Failed to connect PPPoE socket: %d %m", errno);
294 * Disconnects PPPoE device
303 sp.sa_addr.pppoe.sid = 0;
304 memcpy(sp.sa_addr.pppoe.dev, conn->ifName, IFNAMSIZ);
305 memcpy(sp.sa_addr.pppoe.remote, conn->peerEth, ETH_ALEN);
308 error("Failed to disconnect PPPoE socket: %d %m", errno);
422 fatal("Linux kernel does not support PPPoE -- are you running 2.4.x?");
427 info("PPPoE plugin from pppd %s", PPPD_VERSION);
439 ppp_option_error("cannot parse pppoe-mac option value");