The code in this directory is the most up-to-date network source
*** Pre-processor Flags ***
This set of code is controlled by this set of conditional
TESTING if defined, do not generate tests, etc. which require
OLDTTY if defined, compile for old 1 character TTY names
CCTTY if defined, compile for CC tty name format
if neither is defined, use v7 ttyname format
PASSWDF compile in code to handle /etc/passwdf - split passwd files
OLDPROT use the old protocol, instead of the new protocol
FUID use the funny uid's present on Cory and CC
ROPTION The local machine mail program has the magic -r option
HPASSWD The local machine has the hashed password stuff
SPACCT under certain circumstances, allow remote login without acct
CORY compile v6 code, generate OLDTTY code, etc.
At Berkeley, the conditonal flags are first defined
in "whoami.h" on the local machine..
They are VAX, CORY, A, C, D, E, SRC.
These set up these correspondences:
CORY PASSWDF, FUID, OLDTTY,HPASSWD,ROPTION
A,C,D,E CC, CCTTY, PASSWDF, FUID, SPACCT
SRC CC, OLDTTY, PASSWDF, FUID, SPACCT
For "normal" version 6 machines, there is a dummy machine
definition for "VANILLA" which indicates the v6 UNIX options.
Here let's try to account for the machine differences:
a mail command which takes the -r option
2) CC-A,CC-C,CC-D,CC-E have:
an unimproved mail program
allow certain accounts to be accessed w/o passwd
has old 1-char tty format
doesn't allow rlpr's w/o an account
the time system call is different
To add another machine to the network, change these programs:
The machine tables are all in config.h.
1. Change the path names in "Paths.h" and "nsh.c", and the makefile to suit.
2. Change "defs.h" to suit.
3. add in LOCALx section of config.h
the usual information about the machine interconnections
4. add the name of the machine to the machine
name table and its type to the machine type table
5. compile the network specifying the code type (CC, VAX, Cory, VANILLA)
interact.c, listen.c - manually send packets
speeds.c, speedr.c - send various length packets, use "time" to evaluate
store.c, receive.c - send a file (use for backup)
nettest.c - run daemons locally, using pipes instead of tty lines
setmode.c - set the mode on the tty line driver to "cat" things thru