]>
Commit | Line | Data |
---|---|---|
2b778ceb | 1 | /* Copyright (C) 2007-2021 Free Software Foundation, Inc. |
ea2c47b6 UD |
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 | |
59ba27a6 | 15 | License along with the GNU C Library; if not, see |
5a82c748 | 16 | <https://www.gnu.org/licenses/>. */ |
ea2c47b6 UD |
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 | ||
26 | struct 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 | ||
b06549a5 SL |
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 | ||
ea2c47b6 | 48 | #endif |