home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / sys / ioctlos2.h < prev    next >
C/C++ Source or Header  |  1999-05-11  |  6KB  |  123 lines

  1. /*
  2.  * Copyright (c) 1983, 1987 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that the above copyright notice and this paragraph are
  7.  * duplicated in all such forms and that any documentation,
  8.  * advertising materials, and other materials related to such
  9.  * distribution and use acknowledge that the software was developed
  10.  * by the University of California, Berkeley.  The name of the
  11.  * University may not be used to endorse or promote products derived
  12.  * from this software without specific prior written permission.
  13.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16.  *
  17.  *      @(#)resolv.h    5.6 (Berkeley) 9/20/88
  18.  */
  19.  
  20. #ifndef _SYS_IOCTLOS2_H_
  21. #define _SYS_IOCTLOS2_H_
  22.  
  23. #ifdef TCPV40HDRS
  24. #error error: sys\ioctlos2.h is for TCP/IP toolkit 5.0 or later releases only
  25. #else
  26. struct bndreq { short bindings; short bound; };
  27.  
  28. #define ioc(x,y)          ((x<<8)|y)
  29.  
  30. #define FIONSTATUS        _IOR('f', 120, double)      /* actually is 4* short*/
  31. #define FIOBSTATUS        _IOR('f', 122, short)
  32.  
  33. #define SIOCSHOSTID       _IOW('s', 10, long)
  34.  
  35. #define SIOCGNBNAME       _IOR('s', 11, long)   /* AFNB code. Not clear now */
  36. #define SIOCSNBNAME       _IOW('s', 12, long)   /* AFNB                     */
  37. #define SIOCGNCBFN        _IOR('s', 13, long)   /* AFNB                     */
  38.  
  39. #define SIOCSSYN          _IOW('s', 14, long)       /* SYN Attack */
  40.  
  41. #define SIOCSIFBRD        _IOW('i', 27, int)          /* SINGLE-rt bcst. using old # for bkw cmpt */
  42. #define SIOCSIFALLRTB     _IOW('i', 65, struct ifreq) /* added to configure all-route broadcst */
  43.  
  44. #define SIOCSARP          _IOW('i', 30, struct arpreq)/* set ARP entry */
  45. #define SIOCGARP          _IOR('i', 31, struct arpreq)
  46. #define SIOCDARP          _IOW('i', 32, struct arpreq)
  47.  
  48. #define SIOCSIF802_3      _IOW('i', 40, struct ifreq)
  49. #define SIOCSIFNO802_3    _IOW('i', 41, struct ifreq)
  50. #define SIOCSIFNOREDIR    _IOW('i', 42, struct ifreq)
  51. #define SIOCSIFYESREDIR   _IOW('i', 43, struct ifreq)
  52.  
  53. #define SIOCGIFMTU        _IOR('i', 57, struct ifreq)
  54. #define SIOCSIFMTU        _IOW('i', 45, struct ifreq)
  55. #define SIOCSIFFDDI       _IOW('i', 46, struct ifreq)
  56. #define SIOCSIFNOFDDI     _IOW('i', 47, struct ifreq)
  57. #define SIOCSRDBRD        _IOW('i', 48, struct ifreq)
  58.  
  59. #define SIOCGARP_TR       _IOR('i', 50, struct arpreq_tr)
  60. #define SIOCSARP_TR       _IOW('i', 49, struct arpreq_tr)
  61.  
  62. #ifdef SLBOOTP
  63. /* Used to retreive unit number on serial interface */
  64. #define SIOCGUNIT         _IOR('i', 70, struct ifreq)
  65. #endif
  66.  
  67. /* to check if the interface is Valid or not */
  68. #define SIOCGIFVALID    _IOR('i', 75, struct ifreq)
  69. /* ioctl to return bound/shld bind ifs */
  70. #define SIOCGIFBOUND      _IOR('i', 76, struct bndreq)
  71.  
  72. /* Get multicast gp. info for an interface ret list of m-cast addrs for an if */
  73. #define SIOCGMCAST        _IOR('i', 81, struct addrreq)
  74. #define SIOCMULTISBC      _IOW('i', 61, struct ifreq)   /* use broadcast to send IP multicast*/
  75. #define SIOCMULTISFA      _IOW('i', 62, struct ifreq)   /* use functional addr to send IP multicast*/
  76.  
  77. /* block until intf change to running state */
  78. #define SIOCSIFRUNNINGBLK _IOW('i', 77, struct ifreq)
  79.  
  80. /* Interface Tracing Support */
  81. #define SIOCGIFEFLAGS     _IOR('i', 150, struct ifreq)
  82. #define SIOCSIFEFLAGS     _IOW('i', 151, struct ifreq)
  83. #define SIOCGIFTRACE      _IOR('i', 152, struct ifreq)
  84. #define SIOCSIFTRACE      _IOW('i', 153, struct ifreq)
  85.  
  86. /* SLIP STATS */
  87. #define SIOCSSTAT         _IOW('i', 154, struct ifreq)
  88. #define SIOCGSTAT         _IOR('i', 155, struct ifreq)
  89.  
  90. #define SIOCSMSL          _IOW('t', 1, long)          /* set the msl in seconds */
  91. #define SIOCGMSL          _IOR('t', 2, long)          /* get the msl in seconds */
  92.  
  93. /* NETSTAT stuff */
  94. #define SIOSTATMBUF       _IOR('n', 40, struct mbstat)
  95. #define SIOSTATTCP        _IOR('n', 41, struct tcpstat)
  96. #define SIOSTATUDP        _IOR('n', 42, struct udpstat)
  97. #define SIOSTATIP         _IOR('n', 43, struct ipstat)
  98. #define SIOSTATSO         _IOR('n', 44, char /*struct sockaddr*/)
  99. #define SIOSTATTCPZ       _IOR('n', 241, struct tcpstat)
  100. #define SIOSTATUDPZ       _IOR('n', 242, struct udpstat)
  101. #define SIOSTATIPZ        _IOR('n', 243, struct ipstat)
  102.  
  103. #define SIOSTATRT         _IOR('n', 45, char /*struct rtentries*/)
  104. #define SIOFLUSHRT        _IOW('n', 46, long)                     /* Backward compatibility */
  105. #define SIOSTATICMP       _IOR('n', 47, struct icmpstat)
  106. #define SIOSTATICMPZ      _IOR('n', 247, struct icmpstat)
  107. #define SIOSTATIF         _IOR('n', 48, char /*struct ifmib*/)
  108. #define SIOSTATAT         _IOR('n', 49, char /*struct statatreq*/)
  109. #define SIOSTATARP        _IOR('n', 50, char /*struct oarptab*/)
  110. #define SIOSTATIF42       _IOR('n', 51, char /*struct ifmib*/)
  111. #define SIOSTATCNTRT      _IOR('n', 52, int)
  112. #define SIOSTATCNTAT      _IOR('n', 53, int)
  113.  
  114. #define SIOSTATIGMP       _IOR('n', 54, struct igmpstat)  /* SNMP stuff     */
  115. #define SIOFLUSHRTIFP     _IOW('n', 55, long) /* delete routes on an interface */
  116. #define SIOSTATIGMPZ      _IOR('n', 254, struct igmpstat) /* SNMP stuff     */
  117.  
  118. /* adding this ioctl() to be able to send arp request using an ioctl() */
  119. #define SIOCARP           _IOR('i', 156, int)
  120.  
  121. #endif /* TCPV40HDRS */
  122. #endif /* !_SYS_IOCTLOS2_H_ */
  123.