aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDinesh Kumar Sharma <dinesh.sharma@stericsson.com>2011-11-18 01:22:05 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-18 14:37:40 -0500
commitbdb6e697b2a76c541960b86ab8fda88f3de1adf2 (patch)
tree0bd09da4195a4059ab8e353278c2a58757126eff /include
parent805dc1d60fb0d4a8b7730748a11dc2688b8f6cf6 (diff)
Phonet: set the pipe handle using setsockopt
This provides flexibility to set the pipe handle using setsockopt. The pipe can be enabled (if disabled) later using ioctl. Signed-off-by: Hemant Ramdasi <hemant.ramdasi@stericsson.com> Signed-off-by: Dinesh Kumar Sharma <dinesh.sharma@stericsson.com> Acked-by: RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phonet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phonet.h b/include/linux/phonet.h
index f53a4167c5f..f48bfc80cb4 100644
--- a/include/linux/phonet.h
+++ b/include/linux/phonet.h
@@ -38,6 +38,7 @@
#define PNPIPE_ENCAP 1
#define PNPIPE_IFINDEX 2
#define PNPIPE_HANDLE 3
+#define PNPIPE_INITSTATE 4
#define PNADDR_ANY 0
#define PNADDR_BROADCAST 0xFC
@@ -49,6 +50,7 @@
/* ioctls */
#define SIOCPNGETOBJECT (SIOCPROTOPRIVATE + 0)
+#define SIOCPNENABLEPIPE (SIOCPROTOPRIVATE + 13)
#define SIOCPNADDRESOURCE (SIOCPROTOPRIVATE + 14)
#define SIOCPNDELRESOURCE (SIOCPROTOPRIVATE + 15)