l2tp: Add L2TPv3 IP encapsulation (no UDP) support
authorJames Chapman <jchapman@katalix.com>
Fri, 2 Apr 2010 06:19:00 +0000 (06:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Apr 2010 21:56:04 +0000 (14:56 -0700)
commit0d76751fad7739014485ba5bd388d4f1b4fd4143
tree25a4525bf6b2ec9f052f22ba98cdfd3ff3a86aa3
parente0d4435f93905f517003cfa7328a36ea19788147
l2tp: Add L2TPv3 IP encapsulation (no UDP) support

This patch adds a new L2TPIP socket family and modifies the core to
handle the case where there is no UDP header in the L2TP
packet. L2TP/IP uses IP protocol 115. Since L2TP/UDP and L2TP/IP
packets differ in layout, the datapath packet handling code needs
changes too. Userspace uses an L2TPIP socket instead of a UDP socket
when IP encapsulation is required.

We can't use raw sockets for this because the semantics of raw sockets
don't lend themselves to the socket-per-tunnel model - we need to

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/l2tp.h [new file with mode: 0644]
net/l2tp/Kconfig
net/l2tp/Makefile
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h
net/l2tp/l2tp_ip.c [new file with mode: 0644]
net/l2tp/l2tp_ppp.c