1: #if defined(RCSIDENT) && defined (MAINLINE)
2: static char zznetid[] = "$Header: net.h,v 1.7.0.1 86/01/17 21:15:45 notes Rel $";
3: #endif defined(RCSIDENT) && defined(MAINLINE)
4:
5: /*
6: * This file describes the format of the net.how file in the
7: * notesfile utility directory. The file is designed to
8: * allow the reconfiguration of the network software to follow
9: * non-uucp links. The format of a line in the file is:
10: *
11: * system:direction:protocol number::printf control string
12: *
13: * the direction field is contains an x or r, for transmit and
14: * reply. The transmit field is used for sending notes to the
15: * remote site. The reply lines are used for tickling the
16: * remote system into sending notes back.
17: * The third and fourth fields are reserved for future expansion.
18: * The printf control string contains 2 %s arguements.
19: * The first one is the name of the notesfile being sent,
20: * the second is for the local system name.
21: * The receive string is similar.
22: *
23: * The default control string is:
24: * "uux -r -n - tosite!nfrcv %s %s"
25: * for transmission, and for replies it is:
26: * "uux -z farsite!nfxmit %s -d%s"
27: *
28: * In the default case, the tosite/farsite names are filled in.
29: *
30: * the "-r" flag to uux means don't try to start a uucico.
31: *
32: * A sample of our file:
33: *
34: * uicsovax:x:::uux - uicsovax\!/mnt/dcs/essick/.commands/nfrcv %s %s
35: * uicsovax:r:::uux uicsovax\!/mnt/dcs/essick/.commands/nfxmit %s -d%s
36: *
37: * Ray Essick Aprli 23, 1982
38: */
39:
40: #define NFXMIT "nfxmit" /* path to nf xmit */
41: #define NFRCV "nfrcv" /* path to receiver */
42:
43: #define DFLTXMIT "uux -r -n - %s\!%s %s %s < %s" /* default xmit */
44: #define DFLTRPLY "uux -n %s\!%s %s -d%s" /* default reply */
45:
46: #define NETHOW "net.how" /* file containing net links */
47: #define ALIASES "net.aliases" /* alias directory */
48:
49: struct nethow_f /* net.how entries */
50: {
51: char *nh_system; /* destination */
52: char *nh_nf; /* nf good for */
53: int nh_proto; /* protocol */
54: char *nh_xmit; /* xmit command line */
55: char *nh_rcv; /* reply command */
56: };
57:
58: /*
59: * bits in "sendhim" parameter to nfsend().
60: */
61: #define SENDNEWS 001 /* stuff from news */
62: #define SENDHIS 002 /* stuff he's seen */
Defined variables
Defined struct's
Defined macros
NFRCV
defined in line
41; used 1 times
Usage of this include