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>
Showing
- include/linux/l2tp.h 38 additions, 0 deletionsinclude/linux/l2tp.h
- net/l2tp/Kconfig 17 additions, 0 deletionsnet/l2tp/Kconfig
- net/l2tp/Makefile 1 addition, 0 deletionsnet/l2tp/Makefile
- net/l2tp/l2tp_core.c 103 additions, 60 deletionsnet/l2tp/l2tp_core.c
- net/l2tp/l2tp_core.h 7 additions, 0 deletionsnet/l2tp/l2tp_core.h
- net/l2tp/l2tp_ip.c 679 additions, 0 deletionsnet/l2tp/l2tp_ip.c
- net/l2tp/l2tp_ppp.c 5 additions, 2 deletionsnet/l2tp/l2tp_ppp.c
Loading
Please register or sign in to comment