home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / sockio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  5.1 KB  |  118 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef    _SYS_SOCKIO_H
  11. #define    _SYS_SOCKIO_H
  12.  
  13. #ident    "@(#)/usr/include/sys/sockio.h.sl 1.1 4.0 12/08/90 36799 AT&T-USL"
  14.  
  15. /*
  16.  *          PROPRIETARY NOTICE (Combined)
  17.  *  
  18.  *  This source code is unpublished proprietary information
  19.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  20.  *  In addition, portions of such source code were derived from Berkeley
  21.  *  4.3 BSD under license from the Regents of the University of
  22.  *  California.
  23.  *  
  24.  *  
  25.  *  
  26.  *          Copyright Notice 
  27.  *  
  28.  *  Notice of copyright on this source code product does not indicate 
  29.  *  publication.
  30.  *  
  31.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  32.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  33.  *                All rights reserved.
  34.  */
  35.  
  36. /*
  37.  * General socket ioctl definitions.
  38.  */
  39.  
  40. #include <sys/ioccom.h>
  41.  
  42. /* socket i/o controls */
  43. #define    SIOCSHIWAT    _IOW('s',  0, int)        /* set high watermark */
  44. #define    SIOCGHIWAT    _IOR('s',  1, int)        /* get high watermark */
  45. #define    SIOCSLOWAT    _IOW('s',  2, int)        /* set low watermark */
  46. #define    SIOCGLOWAT    _IOR('s',  3, int)        /* get low watermark */
  47. #define    SIOCATMARK    _IOR('s',  7, int)        /* at oob mark? */
  48. #define    SIOCSPGRP    _IOW('s',  8, int)        /* set process group */
  49. #define    SIOCGPGRP    _IOR('s',  9, int)        /* get process group */
  50.  
  51. #define    SIOCADDRT    _IOW('r', 10, struct rtentry)    /* add route */
  52. #define    SIOCDELRT    _IOW('r', 11, struct rtentry)    /* delete route */
  53.  
  54. #define    SIOCSIFADDR    _IOW('i', 12, struct ifreq)    /* set ifnet address */
  55. #define    SIOCGIFADDR    _IOWR('i',13, struct ifreq)    /* get ifnet address */
  56. #define    SIOCSIFDSTADDR    _IOW('i', 14, struct ifreq)    /* set p-p address */
  57. #define    SIOCGIFDSTADDR    _IOWR('i',15, struct ifreq)    /* get p-p address */
  58. #define    SIOCSIFFLAGS    _IOW('i', 16, struct ifreq)    /* set ifnet flags */
  59. #define    SIOCGIFFLAGS    _IOWR('i',17, struct ifreq)    /* get ifnet flags */
  60. #define    SIOCSIFMEM    _IOW('i', 18, struct ifreq)    /* set interface mem */
  61. #define    SIOCGIFMEM    _IOWR('i',19, struct ifreq)    /* get interface mem */
  62. #define    SIOCGIFCONF    _IOWR('i',20, struct ifconf)    /* get ifnet list */
  63. #define    SIOCSIFMTU    _IOW('i', 21, struct ifreq)    /* set if_mtu */
  64. #define    SIOCGIFMTU    _IOWR('i',22, struct ifreq)    /* get if_mtu */
  65.  
  66.     /* from 4.3BSD */
  67. #define    SIOCGIFBRDADDR    _IOWR('i',23, struct ifreq)    /* get broadcast addr */
  68. #define    SIOCSIFBRDADDR    _IOW('i',24, struct ifreq)    /* set broadcast addr */
  69. #define    SIOCGIFNETMASK    _IOWR('i',25, struct ifreq)    /* get net addr mask */
  70. #define    SIOCSIFNETMASK    _IOW('i',26, struct ifreq)    /* set net addr mask */
  71. #define    SIOCGIFMETRIC    _IOWR('i',27, struct ifreq)    /* get IF metric */
  72. #define    SIOCSIFMETRIC    _IOW('i',28, struct ifreq)    /* set IF metric */
  73.  
  74. #define    SIOCSARP    _IOW('i', 30, struct arpreq)    /* set arp entry */
  75. #define    SIOCGARP    _IOWR('i',31, struct arpreq)    /* get arp entry */
  76. #define    SIOCDARP    _IOW('i', 32, struct arpreq)    /* delete arp entry */
  77. #define    SIOCUPPER       _IOW('i', 40, struct ifreq)       /* attach upper layer */
  78. #define    SIOCLOWER       _IOW('i', 41, struct ifreq)       /* attach lower layer */
  79. #define    SIOCSETSYNC    _IOW('i',  44, struct ifreq)    /* set syncmode */
  80. #define    SIOCGETSYNC    _IOWR('i', 45, struct ifreq)    /* get syncmode */
  81. #define    SIOCSSDSTATS    _IOWR('i', 46, struct ifreq)    /* sync data stats */
  82. #define    SIOCSSESTATS    _IOWR('i', 47, struct ifreq)    /* sync error stats */
  83.  
  84. #define    SIOCSPROMISC    _IOW('i', 48, int)        /* request promisc mode
  85.                                on/off */
  86. #define    SIOCADDMULTI    _IOW('i', 49, struct ifreq)    /* set m/c address */
  87. #define    SIOCDELMULTI    _IOW('i', 50, struct ifreq)    /* clr m/c address */
  88.  
  89. /* protocol i/o controls */
  90. #define    SIOCSNIT    _IOW('p',  0, struct nit_ioc)    /* set nit modes */
  91. #define    SIOCGNIT    _IOWR('p', 1, struct nit_ioc)    /* get nit modes */
  92.  
  93. /* STREAMS based socket emulation */
  94.  
  95. #define SIOCPROTO    _IOW('s', 51, struct socknewproto)    /* link proto */
  96. #define SIOCGETNAME    _IOR('s', 52, struct sockaddr)    /* getsockname */
  97. #define SIOCGETPEER    _IOR('s', 53, struct sockaddr)    /* getpeername */
  98. #define IF_UNITSEL    _IOW('s', 54, int)    /* set unit number */
  99. #define SIOCXPROTO    _IO('s', 55)    /* empty proto table */
  100.  
  101. #define SIOCIFDETACH    _IOW('i', 56, struct ifreq)    /* detach interface */
  102. #define SIOCGENPSTATS    _IOWR('i', 57, struct ifreq)    /* get ENP stats */
  103. #define SIOCX25XMT    _IOWR('i', 59, struct ifreq)    /* start a slp proc in
  104.                              * x25if */
  105. #define SIOCX25RCV    _IOWR('i', 60, struct ifreq)    /* start a slp proc in
  106.                              * x25if */
  107. #define SIOCX25TBL    _IOWR('i', 61, struct ifreq)    /* xfer lun table to
  108.                              * kernel */
  109. #define SIOCSLGETREQ    _IOWR('i', 71, struct ifreq)    /* wait for switched
  110.                              * SLIP request */
  111. #define SIOCSLSTAT    _IOW('i', 72, struct ifreq)    /* pass SLIP info to
  112.                              * kernel */
  113. #define SIOCSIFNAME    _IOW('i', 73, struct ifreq)    /* set interface name */
  114. #define SIOCGENADDR    _IOWR('i', 85, struct ifreq)    /* Get ethernet addr */
  115. #define SIOCSOCKSYS    _IOW('i', 86, struct socksysreq)    /* Pseudo socket syscall */
  116.  
  117. #endif    /* _SYS_SOCKIO_H */
  118.