|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 2299 (0x8fb) Types: TextFile Notes: Uncompressed file
└─⟦0f0f313e4⟧ Bits:30004764 SW95709I.2F TCP/IP Update 1 └─⟦0f0f313e4⟧ UNIX Filesystem └─⟦7d9da4378⟧ »SSU.4a/new/etc/conf/pack.d/ip/space.c.Z« └─⟦this⟧
/* * space allocation for IP streams driver * * Copyrighted as an unpublished work. * (c) Copyright 1988 INTERACTIVE Systems Corporation * All rights reserved. * * RESTRICTED RIGHTS: * * These programs are supplied under a license. They may be used, * disclosed, and/or copied only as permitted under such license * agreement. Any copy must contain the above copyright notice and * this restricted rights notice. Use, copying, and/or disclosure * of the programs is strictly prohibited unless otherwise provided * in the license agreement. */ #ident "@(#)Space.c 1.3 - 90/09/11" #ident "@(#) (c) Copyright INTERACTIVE Systems Corporation 1988" #include "sys/types.h" #include "sys/param.h" #include "sys/stream.h" #include "sys/stropts.h" #include "sys/strstat.h" #include "sys/bsdtypes.h" #include "sys/socket.h" #include "netinet/in_systm.h" #include "netinet/in.h" #include "net/if.h" #include "sys/ip.h" #include "netinet/ip.h" #include "netinet/ip_var.h" #include "netinet/ip_icmp.h" #include "netinet/icmp_var.h" #ifdef MERGE /* Use values created by idconfig */ #include "config.h" #define NIP IP_UNITS #else /* Use 1.0.6 values */ #define NIP 8 #endif struct ipdev ipdevs[NIP]; int ip_cnt = NIP; struct ifnet *ip_ifnet; /* * default configuration variables * * These deal with such things as the default condition for gateway behavior, * etc. */ #ifndef IPFORWARDING #define IPFORWARDING 1 #endif #ifndef IPSENDREDIRECTS #define IPSENDREDIRECTS 1 #endif #ifndef GATEWAY #define GATEWAY 0 #endif int ipforwarding = IPFORWARDING; int ipsendredirects = IPSENDREDIRECTS; int ipgateway = GATEWAY; /* * other variables used throughout IP */ ushort ip_id; /* IP packet ID based on count */ struct ipstat ipstat; /* IP statistics */ struct module_stat ip_modstat; /* IP module specific stats */ struct ipmodstats ip_localstat;/* IP module extended local stats */ struct icmpstat icmpstat; /* ICMP statistics */ struct ifnet *ifnet; /* list of interfaces used to find route */ struct ifnet *loif; /* pointer to the loopback stream */ mblk_t ipq; /* IP reassembly queue */ /* for debug */ int ipdebug = 0x0; /* for 4.3 compatibility */ long hostid; #if !defined(NANOSEC) /* for pre-2.3 compatibility */ time_t tv_nsec = 0xFFFFFFFF; #endif