diff mbox

Add missing iucv related defines.

Message ID 571E030E.4080508@linux.vnet.ibm.com
State Committed
Headers show

Commit Message

Stefan Liebler April 25, 2016, 11:44 a.m. UTC
Hi,

this patch adds the missing SOL_IUCV socket level definition
and socket options SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE
which can be used with get/setsockopt().
SCM_IUCV_TRGCLS is needed to send/receive ancillary data with 
send/recvmsg().

The defines are copied from kernel-source:
include/net/iucv/af_iucv.h
include/linux/socket.h

Okay to commit?

ChangeLog:

	* sysdeps/unix/sysv/linux/netiucv/iucv.h
	(SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE,
	SCM_IUCV_TRGCLS): New define.

Comments

Florian Weimer April 26, 2016, 2:27 p.m. UTC | #1
On 04/25/2016 01:44 PM, Stefan Liebler wrote:

>      * sysdeps/unix/sysv/linux/netiucv/iucv.h
>      (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE,
>      SCM_IUCV_TRGCLS): New define.

I double-checked the values against the kernel #defines. Looks good to me.

Thanks,
Florian
Stefan Liebler April 27, 2016, 7:10 a.m. UTC | #2
On 04/26/2016 04:27 PM, Florian Weimer wrote:
> On 04/25/2016 01:44 PM, Stefan Liebler wrote:
>
>>      * sysdeps/unix/sysv/linux/netiucv/iucv.h
>>      (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE,
>>      SCM_IUCV_TRGCLS): New define.
>
> I double-checked the values against the kernel #defines. Looks good to me.
>
> Thanks,
> Florian
>
>
Commited.

Thanks,
Stefan
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/netiucv/iucv.h b/sysdeps/unix/sysv/linux/netiucv/iucv.h
index 13cfe98..df1d918 100644
--- a/sysdeps/unix/sysv/linux/netiucv/iucv.h
+++ b/sysdeps/unix/sysv/linux/netiucv/iucv.h
@@ -35,4 +35,14 @@  struct sockaddr_iucv
 
 __END_DECLS
 
+#define SOL_IUCV        277			/* IUCV level */
+
+/* IUCV socket options (SOL_IUCV) */
+#define SO_IPRMDATA_MSG	0x0080			/* Send/recv IPRM_DATA msgs */
+#define SO_MSGLIMIT	0x1000			/* Get/set IUCV MSGLIMIT */
+#define SO_MSGSIZE	0x0800			/* Get maximum msgsize */
+
+/* IUCV related control messages (scm) */
+#define SCM_IUCV_TRGCLS	0x0001			/* Target class control message */
+
 #endif