#!/bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/circuits.ppp-pppoe-server - PPPoE circuits (server-side) # # Last Update: $Id$ #---------------------------------------------------------------------------- # PPPoE, see RFC 2516 for details DSL_PPPOE_MTU=1492 # 1500 (Ethernet MTU) - 6 (PPPoE header) # - 2 (PPP header without address/control bytes) # $1 = circuit information file # $2 = PPP peer file # $3 = variable receiving an error message (if any) ppp_ethernet_server_circuit_add() { # keep this synchronized with check/pppoe.ext local circ_ppp_ethernet_server_type=${circ_ppp_ethernet_server_type:-kernel} local circ_ppp_ethernet_server_sessions=${circ_ppp_ethernet_server_sessions:-64} : ${circ_ppp_mtu:=$DSL_PPPOE_MTU} : ${circ_ppp_mru:=$DSL_PPPOE_MTU} ip link set dev $circ_ppp_ethernet_server_dev mtu 1500 up # set mtu to 1500 case "$circ_ppp_ethernet_server_type" in daemon) do_modprobe ppp_async ;; kernel) do_modprobe pppoe ;; esac cat >> $2 <> $1 <> "$2" return 0 }