summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChia-chi Yeh <chiachi@android.com>2009-06-12 01:09:30 +0800
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:51:18 -0800
commit4dee9b0d4bfe228d87d6a5c96af771b81fe752a5 (patch)
tree9abf612176940caf0e9ee6ae816bfb4b1ac27db1 /include/linux
parent224e3d846f972c5d3a48afff2c593bd944405a7c (diff)
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/if_pppopns.h32
-rw-r--r--include/linux/if_pppox.h7
2 files changed, 39 insertions, 0 deletions
diff --git a/include/linux/if_pppopns.h b/include/linux/if_pppopns.h
new file mode 100644
index 000000000000..0cf34b4d551f
--- /dev/null
+++ b/include/linux/if_pppopns.h
@@ -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 */
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h
index 18205d2d8d44..bf0fd2a68c85 100644
--- a/include/linux/if_pppox.h
+++ b/include/linux/if_pppox.h
@@ -51,6 +51,12 @@ struct pppolac_opt {
__u8 sequencing;
};
+struct pppopns_opt {
+ __u16 local;
+ __u16 remote;
+ __u32 sequence;
+};
+
#include <net/sock.h>
struct pppox_sock {
@@ -62,6 +68,7 @@ struct pppox_sock {
struct pppoe_opt pppoe;
struct pptp_opt pptp;
struct pppolac_opt lac;
+ struct pppopns_opt pns;
} proto;
__be16 num;
};