iucv.h 1.6 KB

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