diff options
Diffstat (limited to 'include/linux/l2tp.h')
-rw-r--r-- | include/linux/l2tp.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/l2tp.h b/include/linux/l2tp.h index 16b834741d16..7eab668f60f3 100644 --- a/include/linux/l2tp.h +++ b/include/linux/l2tp.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/socket.h> | 11 | #include <linux/socket.h> |
12 | #ifdef __KERNEL__ | 12 | #ifdef __KERNEL__ |
13 | #include <linux/in.h> | 13 | #include <linux/in.h> |
14 | #include <linux/in6.h> | ||
14 | #else | 15 | #else |
15 | #include <netinet/in.h> | 16 | #include <netinet/in.h> |
16 | #endif | 17 | #endif |
@@ -39,6 +40,22 @@ struct sockaddr_l2tpip { | |||
39 | sizeof(__u32)]; | 40 | sizeof(__u32)]; |
40 | }; | 41 | }; |
41 | 42 | ||
43 | /** | ||
44 | * struct sockaddr_l2tpip6 - the sockaddr structure for L2TP-over-IPv6 sockets | ||
45 | * @l2tp_family: address family number AF_L2TPIP. | ||
46 | * @l2tp_addr: protocol specific address information | ||
47 | * @l2tp_conn_id: connection id of tunnel | ||
48 | */ | ||
49 | struct sockaddr_l2tpip6 { | ||
50 | /* The first fields must match struct sockaddr_in6 */ | ||
51 | __kernel_sa_family_t l2tp_family; /* AF_INET6 */ | ||
52 | __be16 l2tp_unused; /* INET port number (unused) */ | ||
53 | __be32 l2tp_flowinfo; /* IPv6 flow information */ | ||
54 | struct in6_addr l2tp_addr; /* IPv6 address */ | ||
55 | __u32 l2tp_scope_id; /* scope id (new in RFC2553) */ | ||
56 | __u32 l2tp_conn_id; /* Connection ID of tunnel */ | ||
57 | }; | ||
58 | |||
42 | /***************************************************************************** | 59 | /***************************************************************************** |
43 | * NETLINK_GENERIC netlink family. | 60 | * NETLINK_GENERIC netlink family. |
44 | *****************************************************************************/ | 61 | *****************************************************************************/ |