• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* include/uapi/linux/if_pppopns.h
2  *
3  * Header for PPP on PPTP Network Server / PPPoPNS Socket (RFC 2637)
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 _UAPI_LINUX_IF_PPPOPNS_H
19 #define _UAPI_LINUX_IF_PPPOPNS_H
20 
21 #include <linux/socket.h>
22 #include <linux/types.h>
23 
24 struct sockaddr_pppopns {
25 	sa_family_t	sa_family;	/* AF_PPPOX */
26 	unsigned int	sa_protocol;	/* PX_PROTO_OPNS */
27 	int		tcp_socket;
28 	__u16		local;
29 	__u16		remote;
30 } __attribute__((packed));
31 
32 #endif /* _UAPI_LINUX_IF_PPPOPNS_H */
33