diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2009-04-21 19:26:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-23 07:04:32 -0400 |
commit | 9d5c5d8f4105dc56ec10864b195dd1714f282c22 (patch) | |
tree | 075499708835271c15fa60b836a3e0f8723f6ba4 /include | |
parent | af88b52def76679c8c5bcdbed199fbe62b6a16d4 (diff) |
af_iucv: add sockopt() to enable/disable use of IPRM_DATA msgs
Provide the socket operations getsocktopt() and setsockopt() to enable/disable
sending of data in the parameter list of IUCV messages.
The patch sets respective flag only.
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')
-rw-r--r-- | include/linux/socket.h | 1 | ||||
-rw-r--r-- | include/net/iucv/af_iucv.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 42a0396f2c59..d2310cb45d2f 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h | |||
@@ -303,6 +303,7 @@ struct ucred { | |||
303 | #define SOL_BLUETOOTH 274 | 303 | #define SOL_BLUETOOTH 274 |
304 | #define SOL_PNPIPE 275 | 304 | #define SOL_PNPIPE 275 |
305 | #define SOL_RDS 276 | 305 | #define SOL_RDS 276 |
306 | #define SOL_IUCV 277 | ||
306 | 307 | ||
307 | /* IPX options */ | 308 | /* IPX options */ |
308 | #define IPX_TYPE 1 | 309 | #define IPX_TYPE 1 |
diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index 85f80eadfa35..78a72764aeff 100644 --- a/include/net/iucv/af_iucv.h +++ b/include/net/iucv/af_iucv.h | |||
@@ -73,8 +73,12 @@ struct iucv_sock { | |||
73 | struct sk_buff_head backlog_skb_q; | 73 | struct sk_buff_head backlog_skb_q; |
74 | struct sock_msg_q message_q; | 74 | struct sock_msg_q message_q; |
75 | unsigned int send_tag; | 75 | unsigned int send_tag; |
76 | u8 flags; | ||
76 | }; | 77 | }; |
77 | 78 | ||
79 | /* iucv socket options (SOL_IUCV) */ | ||
80 | #define SO_IPRMDATA_MSG 0x0080 /* send/recv IPRM_DATA msgs */ | ||
81 | |||
78 | struct iucv_sock_list { | 82 | struct iucv_sock_list { |
79 | struct hlist_head head; | 83 | struct hlist_head head; |
80 | rwlock_t lock; | 84 | rwlock_t lock; |