home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 41.ddi / root.2 / tmp / inet / ip.Space < prev    next >
Encoding:
Text File  |  1990-12-08  |  1.0 KB  |  38 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. #ident    "@(#)//usr/src/uts/i386/master.d/ip/space.c.sl 1.1 4.0 12/08/90 36785 AT&T-USL"
  11.  
  12. #include <sys/types.h>
  13. #include <sys/socket.h>
  14. #include <sys/sockio.h>
  15.  
  16. #define STRNET
  17.  
  18. #include <net/if.h>
  19. #include <netinet/in.h>
  20. #include <netinet/in_var.h>
  21. #include <net/route.h>
  22. #include <netinet/ip_str.h>
  23. #include <netinet/ip_var.h>
  24.  
  25. #define IPCNT    8
  26. #define IPPROVCNT    16
  27. #define IPSENDREDIRECTS    0
  28.  
  29. /* if IPFORWARDING is set, hosts will act as gateways */
  30. #define IPFORWARDING    0
  31.  
  32. struct    ip_pcb ip_pcb[IPCNT];
  33. struct     ip_provider provider[IPPROVCNT];
  34. int     ipcnt=IPCNT;
  35. int    ipprovcnt=IPPROVCNT;
  36. int    ipforwarding=IPFORWARDING;
  37. int    ipsendredirects=IPSENDREDIRECTS;
  38.