| 1 | diff --git a/include/linux/if_pppol2tp.h b/include/linux/if_pppol2tp.h |
|---|
| 2 | index 4113d6a..7ee86b2 100644 |
|---|
| 3 | --- a/include/linux/if_pppol2tp.h |
|---|
| 4 | +++ b/include/linux/if_pppol2tp.h |
|---|
| 5 | @@ -2,7 +2,7 @@ |
|---|
| 6 | * Linux PPP over L2TP (PPPoL2TP) Socket Implementation (RFC 2661) |
|---|
| 7 | * |
|---|
| 8 | * This file supplies definitions required by the PPP over L2TP driver |
|---|
| 9 | - * (pppol2tp.c). All version information wrt this file is located in pppol2tp.c |
|---|
| 10 | + * (l2tp_ppp.c). All version information wrt this file is located in l2tp_ppp.c |
|---|
| 11 | * |
|---|
| 12 | * License: |
|---|
| 13 | * This program is free software; you can redistribute it and/or |
|---|
| 14 | @@ -15,14 +15,14 @@ |
|---|
| 15 | #ifndef __LINUX_IF_PPPOL2TP_H |
|---|
| 16 | #define __LINUX_IF_PPPOL2TP_H |
|---|
| 17 | |
|---|
| 18 | -#include <asm/types.h> |
|---|
| 19 | +#include <linux/types.h> |
|---|
| 20 | + |
|---|
| 21 | |
|---|
| 22 | /* Structure used to connect() the socket to a particular tunnel UDP |
|---|
| 23 | * socket. |
|---|
| 24 | */ |
|---|
| 25 | -struct pppol2tp_addr |
|---|
| 26 | -{ |
|---|
| 27 | - pid_t pid; /* pid that owns the fd. |
|---|
| 28 | +struct pppol2tp_addr { |
|---|
| 29 | + __kernel_pid_t pid; /* pid that owns the fd. |
|---|
| 30 | * 0 => current */ |
|---|
| 31 | int fd; /* FD of UDP socket to use */ |
|---|
| 32 | |
|---|
| 33 | @@ -32,6 +32,20 @@ struct pppol2tp_addr |
|---|
| 34 | __u16 d_tunnel, d_session; /* For sending outgoing packets */ |
|---|
| 35 | }; |
|---|
| 36 | |
|---|
| 37 | +/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32 |
|---|
| 38 | + * bits. So we need a different sockaddr structure. |
|---|
| 39 | + */ |
|---|
| 40 | +struct pppol2tpv3_addr { |
|---|
| 41 | + pid_t pid; /* pid that owns the fd. |
|---|
| 42 | + * 0 => current */ |
|---|
| 43 | + int fd; /* FD of UDP or IP socket to use */ |
|---|
| 44 | + |
|---|
| 45 | + struct sockaddr_in addr; /* IP address and port to send to */ |
|---|
| 46 | + |
|---|
| 47 | + __u32 s_tunnel, s_session; /* For matching incoming packets */ |
|---|
| 48 | + __u32 d_tunnel, d_session; /* For sending outgoing packets */ |
|---|
| 49 | +}; |
|---|
| 50 | + |
|---|
| 51 | /* Socket options: |
|---|
| 52 | * DEBUG - bitmask of debug message categories |
|---|
| 53 | * SENDSEQ - 0 => don't send packets with sequence numbers |
|---|