home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / USR_GZ / usr / include / netinet / in.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-14  |  2.6 KB  |  89 lines

  1. /* Copyright (C) 1991 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 modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 1, or (at your option)
  7. 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
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with the GNU C Library; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. #ifndef    _NETINET_IN_H
  19.  
  20. #define    _NETINET_IN_H    1
  21. #include <features.h>
  22.  
  23. #include <sys/socket.h>
  24.  
  25. __BEGIN_DECLS
  26.  
  27. /* Standard well-known ports.  */
  28. enum
  29.   {
  30.     IPPORT_ECHO = 7,        /* Echo service.  */
  31.     IPPORT_DISCARD = 9,        /* Discard transmissions service.  */
  32.     IPPORT_SYSTAT = 11,        /* System status service.  */
  33.     IPPORT_DAYTIME = 13,    /* Time of day service.  */
  34.     IPPORT_NETSTAT = 15,    /* Network status service.  */
  35.     IPPORT_FTP = 21,        /* File Transfer Protocol.  */
  36.     IPPORT_TELNET = 23,        /* Telnet protocol.  */
  37.     IPPORT_SMTP = 25,        /* Simple Mail Transfer Protocol.  */
  38.     IPPORT_TIMESERVER = 37,    /* Timeserver service.  */
  39.     IPPORT_NAMESERVER = 42,    /* Domain Name Service.  */
  40.     IPPROT_WHOIS = 43,        /* Internet Whois service.  */
  41.     IPPORT_MTP = 57,
  42.  
  43.     IPPORT_TFTP = 69,        /* Trivial File Transfer Protocol.  */
  44.     IPPORT_RJE = 77,
  45.     IPPORT_FINGER = 79,        /* Finger service.  */
  46.     IPPORT_TTYLINK = 87,
  47.     IPPORT_SUPDUP = 95,        /* SUPDUP protocol.  */
  48.  
  49.  
  50.     IPPORT_EXECSERVER = 512,    /* execd service.  */
  51.     IPPORT_LOGINSERVER = 513,    /* rlogind service.  */
  52.     IPPORT_CMDSERVER = 514,
  53.     IPPORT_EFSSERVER = 520,
  54.  
  55.     /* UDP ports.  */
  56.     IPPORT_BIFFUDP = 512,
  57.     IPPORT_WHOSERVER = 513,
  58.     IPPORT_ROUTESERVER = 520,
  59.  
  60.     /* Ports less than this value are reserved for privileged processes.  */
  61.     IPPORT_RESERVED = 1024,
  62.  
  63.     /* Ports greater this value are reserved for (non-privileged) servers.  */
  64.     IPPORT_USERRESERVED = 5000
  65.   };
  66.  
  67.  
  68. /* Link numbers.  */
  69. #define    IMPLINK_IP        155
  70. #define    IMPLINK_LOWEXPER    156
  71. #define    IMPLINK_HIGHEXPER    158
  72.  
  73.  
  74. /*
  75.  * Many other definitions have been moved to <linux/in.h>,
  76.  * because several parts of the kernel need them. -FvK
  77.  */
  78. #include <linux/in.h>
  79.  
  80. /*
  81.  * Bind a socket to a privileged IP port
  82.  */
  83. extern int bindresvport __P ((int __sockfd,
  84.         struct sockaddr_in * __sin));
  85.  
  86. __END_DECLS
  87.  
  88. #endif    /* netinet/in.h */
  89.