diff options
author | 2007-06-27 15:43:43 -0700 | |
---|---|---|
committer | 2007-07-10 22:15:58 -0700 | |
commit | cf14a4d06742d59ecb2d837a3f53bb24d1ff9acb (patch) | |
tree | 78b8058dd7bd8b1cfba243d7d478495e0ba9281b /include/linux/socket.h | |
parent | [UDP]: Introduce UDP encapsulation type for L2TP (diff) | |
download | linux-cf14a4d06742d59ecb2d837a3f53bb24d1ff9acb.tar.gz linux-cf14a4d06742d59ecb2d837a3f53bb24d1ff9acb.tar.bz2 linux-cf14a4d06742d59ecb2d837a3f53bb24d1ff9acb.zip |
[L2TP]: Changes to existing ppp and socket kernel headers for L2TP
Add struct sockaddr_pppol2tp to carry L2TP-specific address
information for the PPPoX (PPPoL2TP) socket. Unfortunately we can't
use the union inside struct sockaddr_pppox because the L2TP-specific
data is larger than the current size of the union and we must preserve
the size of struct sockaddr_pppox for binary compatibility.
Also add a PPPIOCGL2TPSTATS ioctl to allow userspace to obtain
L2TP counters and state from the kernel.
Add new if_pppol2tp.h header.
[ Modified to use aligned_u64 in statistics structure -DaveM ]
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/socket.h')
-rw-r--r-- | include/linux/socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 6e7c9483a6a6..fe195c97a89d 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -287,6 +287,7 @@ struct ucred { #define SOL_NETLINK 270 #define SOL_TIPC 271 #define SOL_RXRPC 272 +#define SOL_PPPOL2TP 273 /* IPX options */ #define IPX_TYPE 1 |