|
|
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 - downloadIndex: S T U
Length: 1913 (0x779)
Types: TextFile
Notes: UNIX file, Uncompressed file
Names: »Space.c«
└─⟦0f0f313e4⟧ Bits:30004764 SW95709I.2F TCP/IP Update 1
└─⟦0f0f313e4⟧ UNIX Filesystem
└─⟦1348d1646⟧ »SSU.4a/new/etc/conf/pack.d/arp/space.c.Z«
└─⟦this⟧
└─⟦f660c3862⟧ Bits:30004068/disk1.imd Interactive TCP/IP v.1.2
└─⟦f660c3862⟧ UNIX Filesystem
└─⟦this⟧ »hb/driver/arp/Space.c«
/*
* Streams-based arp 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 - 88/10/11"
#ident "@(#) (c) Copyright INTERACTIVE Systems Corporation 1988"
#include "sys/types.h"
#include "sys/stream.h"
#include "sys/bsdtypes.h"
#include "sys/socket.h"
#include "netinet/in.h"
#include "netinet/in_systm.h"
#include "netinet/ip.h"
#include "net/if_arp.h"
#include "netinet/if_ether.h"
#ifdef MERGE
#define NUARP ARP_MAXSUB
#define NLARP 2 * NUARP
#else
#define NUARP 4
#define NLARP 2 * NUARP
#endif
/* timer values */
#define ARPT_AGE (60*1) /* aging timer, 1 min. */
#define ARPT_KILLC 20 /* kill completed entry in 20 mins. */
#define ARPT_KILLI 3 /* kill incomplete entry in 3 minutes */
#define ARPTAB_BSIZ 9 /* bucket size */
#define ARPTAB_NB 19 /* number of buckets */
#define ARPTAB_SIZE (ARPTAB_BSIZ * ARPTAB_NB)
#include "config.h" /* to allow override of above defines */
/* upper (user - network layer) arp streams */
int arpu_cnt = {NUARP};
struct arpdev arpudevs[NUARP];
/* lower (link layer) arp streams */
int arpl_cnt = {NLARP};
struct arpdev arpldevs[NLARP];
/* arp timer */
int arpt_age = {ARPT_AGE};
int arpt_killc = {ARPT_KILLC};
int arpt_killi = {ARPT_KILLI};
/* arp table */
int arptab_size = {ARPTAB_SIZE}; /* for arp command */
int arptab_bsiz = {ARPTAB_BSIZ};
int arptab_nb = {ARPTAB_NB};
struct arptab arptab[ARPTAB_SIZE];
/* debug */
#ifdef ARPDEBUG
int arpdebug = 0x10;
#endif