summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/phonet.h8
-rw-r--r--include/linux/socket.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/phonet.h b/include/linux/phonet.h
index f9218524207..c9609f9aeda 100644
--- a/include/linux/phonet.h
+++ b/include/linux/phonet.h
@@ -31,9 +31,17 @@
#define PN_PROTO_PIPE 2
#define PHONET_NPROTO 3
+/* Socket options for SOL_PNPIPE level */
+#define PNPIPE_ENCAP 1
+#define PNPIPE_IFINDEX 2
+
#define PNADDR_ANY 0
#define PNPORT_RESOURCE_ROUTING 0
+/* Values for PNPIPE_ENCAP option */
+#define PNPIPE_ENCAP_NONE 0
+#define PNPIPE_ENCAP_IP 1
+
/* ioctls */
#define SIOCPNGETOBJECT (SIOCPROTOPRIVATE + 0)
diff --git a/include/linux/socket.h b/include/linux/socket.h
index 818ca33bf79..20fc4bbfca4 100644
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -297,6 +297,7 @@ struct ucred {
#define SOL_RXRPC 272
#define SOL_PPPOL2TP 273
#define SOL_BLUETOOTH 274
+#define SOL_PNPIPE 275
/* IPX options */
#define IPX_TYPE 1