aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/iucv
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2009-04-21 19:26:24 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-23 07:04:35 -0400
commit44b1e6b5f9a93cc2ba024e09cf137d5f1b5f8426 (patch)
tree1daabfda256f7b5d7e6ccc0e7200ce7888f0a2b9 /include/net/iucv
parentb8942e3b6c4b35dda5e8ca75aec5e2f027fe39a9 (diff)
af_iucv: Modify iucv msg target class using control msghdr
Allow 'classification' of socket data that is sent or received over an af_iucv socket. For classification of data, the target class of an (native) iucv message is used. This patch provides the cmsg interface for iucv_sock_recvmsg() and iucv_sock_sendmsg(). Applications can use the msg_control field of struct msghdr to set or get the target class as a "socket control message" (SCM/CMSG). Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/iucv')
-rw-r--r--include/net/iucv/af_iucv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h
index 78a72764aeff..b57739e49dc1 100644
--- a/include/net/iucv/af_iucv.h
+++ b/include/net/iucv/af_iucv.h
@@ -79,6 +79,9 @@ struct iucv_sock {
79/* iucv socket options (SOL_IUCV) */ 79/* iucv socket options (SOL_IUCV) */
80#define SO_IPRMDATA_MSG 0x0080 /* send/recv IPRM_DATA msgs */ 80#define SO_IPRMDATA_MSG 0x0080 /* send/recv IPRM_DATA msgs */
81 81
82/* iucv related control messages (scm) */
83#define SCM_IUCV_TRGCLS 0x0001 /* target class control message */
84
82struct iucv_sock_list { 85struct iucv_sock_list {
83 struct hlist_head head; 86 struct hlist_head head;
84 rwlock_t lock; 87 rwlock_t lock;