mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 11:41:07 +00:00
b06549a5e6
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
49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/* Copyright (C) 2007-2016 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef __NETIUCV_IUCV_H
|
|
#define __NETIUCV_IUCV_H 1
|
|
|
|
#include <features.h>
|
|
#include <bits/sockaddr.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
struct sockaddr_iucv
|
|
{
|
|
__SOCKADDR_COMMON (siucv_);
|
|
unsigned short siucv_port; /* Reserved */
|
|
unsigned int siucv_addr; /* Reserved */
|
|
char siucv_nodeid[8]; /* Reserved */
|
|
char siucv_user_id[8]; /* Guest User Id */
|
|
char siucv_name[8]; /* Application Name */
|
|
};
|
|
|
|
__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
|