l2tp: Update PPP-over-L2TP driver to work over L2TPv3
commite0d4435f93905f517003cfa7328a36ea19788147
authorJames Chapman <jchapman@katalix.com>
Fri, 2 Apr 2010 06:18:54 +0000 (2 06:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Apr 2010 21:56:04 +0000 (3 14:56 -0700)
treecdf858e601d993405d3fd1f318446dddbf9e6fcb
parentf7faffa3ff8ef6ae712ef16312b8a2aa7a1c95fe
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