[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20070501023112.9fa486de.billfink@mindspring.com>
Date: Tue, 1 May 2007 02:31:12 -0400
From: Bill Fink <billfink@...dspring.com>
To: James Chapman <jchapman@...alix.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 5/5 2.6.21] L2TP: Add PPPoL2TP in-kernel documentation
On Mon, 30 Apr 2007, James Chapman wrote:
> Signed-off-by: James Chapman <jchapman@...alix.com>
>
> Index: linux-2.6.21/Documentation/networking/l2tp.txt
> ===================================================================
> --- /dev/null
> +++ linux-2.6.21/Documentation/networking/l2tp.txt
> @@ -0,0 +1,167 @@
> +This brief document describes how to use the kernel's PPPoL2TP driver
> +to provide L2TP functionality. L2TP is a protocol that tunnels one or
> +more PPP sessions over a UDP tunnel. It is commonly used for VPNs
> +(L2TP/IPSec) and by ISPs to tunnel subscriber PPP sessions over an IP
> +network infrastructure.
> +
> +Design
> +======
> +
> +The PPPoL2TP driver, drivers/net/pppol2tp.c, provides a mechanism by
> +which PPP frames carried through an L2TP session are passed through
> +the kernel's PPP subsystem. The standard PPP daemon, pppd, handles all
> +PPP interaction with the peer. PPP network interfaces are created for
> +each local PPP endpoint.
...
> +There are a number of requirements on the userspace L2TP daemon in
> +order to use the pppol2tp driver.
> +
> +1. Use a UDP socket per tunnel.
> +
> +2. Create a single PPPoL2TP socket per tunnel. This is used only for
> + for communicating with the driver but must remain open while the
"for for" above.
> + tunnel is active. The driver marks the tunnel socket as an L2TP UDP
> + encapsulation socket, which hooks up the UDP receive path via
> + usp_encap_rcv() in net/ipv4/udp.c. PPP data frames are never passed
Typo. "usp_encap_rcv()" -> "udp_encap_rcv()".
> + in this special PPPoX socket.
> +
> +3. Create a PPPoL2TP socket per L2TP session. This is typically done
> + by starting pppd with the pppol2tp plugin and appropriate
> + arguments. A PPPoL2TP tunnel management socket (Step 2) must be
> + created before the first PPPoL2TP session socket is created.
-Bill
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists