-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 193942 b: refs/heads/master c: 0d76751 h: refs/heads/master v: v3
- Loading branch information
James Chapman
authored and
David S. Miller
committed
Apr 3, 2010
1 parent
97b42ea
commit db51ba5
Showing
8 changed files
with
851 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: e0d4435f93905f517003cfa7328a36ea19788147 | ||
refs/heads/master: 0d76751fad7739014485ba5bd388d4f1b4fd4143 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* L2TP-over-IP socket for L2TPv3. | ||
* | ||
* Author: James Chapman <jchapman@katalix.com> | ||
*/ | ||
|
||
#ifndef _LINUX_L2TP_H_ | ||
#define _LINUX_L2TP_H_ | ||
|
||
#include <linux/types.h> | ||
#ifdef __KERNEL__ | ||
#include <linux/socket.h> | ||
#include <linux/in.h> | ||
#endif | ||
|
||
#define IPPROTO_L2TP 115 | ||
|
||
/** | ||
* struct sockaddr_l2tpip - the sockaddr structure for L2TP-over-IP sockets | ||
* @l2tp_family: address family number AF_L2TPIP. | ||
* @l2tp_addr: protocol specific address information | ||
* @l2tp_conn_id: connection id of tunnel | ||
*/ | ||
struct sockaddr_l2tpip { | ||
/* The first fields must match struct sockaddr_in */ | ||
sa_family_t l2tp_family; /* AF_INET */ | ||
__be16 l2tp_unused; /* INET port number (unused) */ | ||
struct in_addr l2tp_addr; /* Internet address */ | ||
|
||
__u32 l2tp_conn_id; /* Connection ID of tunnel */ | ||
|
||
/* Pad to size of `struct sockaddr'. */ | ||
unsigned char __pad[sizeof(struct sockaddr) - sizeof(sa_family_t) - | ||
sizeof(__be16) - sizeof(struct in_addr) - | ||
sizeof(__u32)]; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.