1/* Copyright (C) 2007-2025 Free Software Foundation, Inc.
 2   This file is part of the GNU C Library.
 3
 4   The GNU C Library is free software; you can redistribute it and/or
 5   modify it under the terms of the GNU Lesser General Public
 6   License as published by the Free Software Foundation; either
 7   version 2.1 of the License, or (at your option) any later version.
 8
 9   The GNU C Library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with the GNU C Library; if not, see
16   <https://www.gnu.org/licenses/>.  */
17
18#ifndef __NETIUCV_IUCV_H
19#define __NETIUCV_IUCV_H	1
20
21#include <features.h>
22#include <bits/sockaddr.h>
23
24__BEGIN_DECLS
25
26struct __attribute_struct_may_alias__ sockaddr_iucv
27  {
28    __SOCKADDR_COMMON (siucv_);
29    unsigned short	siucv_port;		/* Reserved */
30    unsigned int	siucv_addr;		/* Reserved */
31    char		siucv_nodeid[8];	/* Reserved */
32    char		siucv_user_id[8];	/* Guest User Id */
33    char		siucv_name[8];		/* Application Name */
34  };
35
36__END_DECLS
37
38#define SOL_IUCV        277			/* IUCV level */
39
40/* IUCV socket options (SOL_IUCV) */
41#define SO_IPRMDATA_MSG	0x0080			/* Send/recv IPRM_DATA msgs */
42#define SO_MSGLIMIT	0x1000			/* Get/set IUCV MSGLIMIT */
43#define SO_MSGSIZE	0x0800			/* Get maximum msgsize */
44
45/* IUCV related control messages (scm) */
46#define SCM_IUCV_TRGCLS	0x0001			/* Target class control message */
47
48#endif