net: add PPP on PPTP Network Server (PPPoPNS) driver.
Signed-off-by: Chia-chi Yeh <chiachi@android.com> ppopns: dont include px_proto define in if_pppopns.h Change-Id: I27e687667db5b45182562f4a517a2e6cec6b1350 Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
committed by
Colin Cross
parent
49c48cb538
commit
803341c2bb
32
include/linux/if_pppopns.h
Normal file
32
include/linux/if_pppopns.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* include/linux/if_pppopns.h
|
||||
*
|
||||
* Header for PPP on PPTP Network Server / PPPoPNS Socket (RFC 2637)
|
||||
*
|
||||
* Copyright (C) 2009 Google, Inc.
|
||||
* Author: Chia-chi Yeh <chiachi@android.com>
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_IF_PPPOPNS_H
|
||||
#define __LINUX_IF_PPPOPNS_H
|
||||
|
||||
#include <linux/socket.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
struct sockaddr_pppopns {
|
||||
sa_family_t sa_family; /* AF_PPPOX */
|
||||
unsigned int sa_protocol; /* PX_PROTO_OPNS */
|
||||
int tcp_socket;
|
||||
__u16 local;
|
||||
__u16 remote;
|
||||
} __attribute__((packed));
|
||||
|
||||
#endif /* __LINUX_IF_PPPOPNS_H */
|
||||
Reference in New Issue
Block a user