diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/if_pppolac.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'include/linux/if_pppolac.h')
-rw-r--r-- | include/linux/if_pppolac.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/if_pppolac.h b/include/linux/if_pppolac.h new file mode 100644 index 00000000000..c06bd6c8ba2 --- /dev/null +++ b/include/linux/if_pppolac.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* include/linux/if_pppolac.h | ||
2 | * | ||
3 | * Header for PPP on L2TP Access Concentrator / PPPoLAC Socket (RFC 2661) | ||
4 | * | ||
5 | * Copyright (C) 2009 Google, Inc. | ||
6 | * Author: Chia-chi Yeh <chiachi@android.com> | ||
7 | * | ||
8 | * This software is licensed under the terms of the GNU General Public | ||
9 | * License version 2, as published by the Free Software Foundation, and | ||
10 | * may be copied, distributed, and modified under those terms. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | */ | ||
17 | |||
18 | #ifndef __LINUX_IF_PPPOLAC_H | ||
19 | #define __LINUX_IF_PPPOLAC_H | ||
20 | |||
21 | #include <linux/socket.h> | ||
22 | #include <linux/types.h> | ||
23 | |||
24 | struct sockaddr_pppolac { | ||
25 | sa_family_t sa_family; /* AF_PPPOX */ | ||
26 | unsigned int sa_protocol; /* PX_PROTO_OLAC */ | ||
27 | int udp_socket; | ||
28 | struct __attribute__((packed)) { | ||
29 | __u16 tunnel, session; | ||
30 | } local, remote; | ||
31 | } __attribute__((packed)); | ||
32 | |||
33 | #endif /* __LINUX_IF_PPPOLAC_H */ | ||