]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: Update PPP-over-L2TP driver to work over L2TPv3
authorJames Chapman <jchapman@katalix.com>
Fri, 2 Apr 2010 06:18:54 +0000 (06:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Apr 2010 21:56:04 +0000 (14:56 -0700)
commit10be45f1a36e73405d3ec40f212a71ed0ffb5932
treecdf858e601d993405d3fd1f318446dddbf9e6fcb
parent9b4d7c520ad65faa4bc77de6564b0b9dcff0e98e
l2tp: Update PPP-over-L2TP driver to work over L2TPv3

This patch makes changes to the L2TP PPP code for L2TPv3.

The existing code has some assumptions about the L2TP header which are
broken by L2TPv3. Also the sockaddr_pppol2tp structure of the original
code is too small to support the increased size of the L2TPv3 tunnel
and session id, so a new sockaddr_pppol2tpv3 structure is needed. In
the socket calls, the size of this structure is used to tell if the
operation is for L2TPv2 or L2TPv3.

Signed-off-by: James Chapman <jchapman@katalix.com>
Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_pppol2tp.h
include/linux/if_pppox.h
net/l2tp/l2tp_ppp.c