blob: e4c55b36695cbc84b2f81d8e81f818db803026d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
/* $Id: config.h,v 1.1.1.1 1999/02/02 23:29:39 shmit Exp $ */
#ifndef CONFIG_H
# define CONFIG_H
#include <limits.h>
#include <sys/param.h>
#include <sys/time.h>
#include "compat.h"
#ifndef PREFIX
#define PREFIX "/home/shmit/src/ticra"
#endif
#ifndef BINDIR
#define BINDIR PREFIX
#endif
#ifndef LIBEXECDIR
#define LIBEXECDIR PREFIX
#endif
#ifndef DATADIR
#define DATADIR PREFIX
#endif
/* Path to place debugging files. */
#define TMPPATH "/tmp"
/* Default config file to load. */
#define SERVER_CONFIG_FILE DATADIR "/server.conf"
#define CLIENT_CONFIG_FILE DATADIR "/client.conf"
/* Path to rsh or replacement. Should probably go into config file. */
#define PATH_RSH "/usr/local/bin/ssh"
/* If random syscalls fail with EAGAIN, how many times to try. */
#define MAXRETRIES 10
/* --- You probably don't want to edit any of the below. --- */
/*
* Dumper client/server protocol below, edit at your own risk.
*/
/* Initialization protocol. */
#define INIT_REQ "WHAT DO YOU WANT"
#define INIT_ACK "INFORMATION"
/* Single transaction protocol. */
#define REQ_ACK "ACK"
#define REQ_NACK "NACK"
#define PORT_REQ "PORT"
#define DUMP_SENDME "SENDME"
#define DUMP_DONE "DONE"
#define DUMP_ERROR "ERROR"
/* Disk request fields. */
#define DISK_REQ "IHAVE"
#define DISK_NAME "NAME"
#define DISK_AUTH "AUTH"
#define DISK_SIZE "SIZE"
#define DISK_LEVEL "LEVEL"
/* Auth request field. */
#define AUTH_NOAUTH "NONE"
#define AUTH_RSH "RSH"
/*
* Taper protocol below, same as above.
*/
#define TAPER_START "YOU WONT GET IT"
#define TAPER_STOP "BY HOOK OR BY CROOK, WE WILL"
/*
* OS macros/defines below.
*/
#define RCSID(x) static const char rcsid[] __attribute__((__unused__)) = x
/* Buffer size to use to dump to tape. */
#define BUFFSIZE 8192
#ifndef MAXLINE
#define MAXLINE 256
#endif
#ifndef MAXPATHLEN
#define MAXPATHLEN 128
#endif
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 256
#endif
#ifndef FD_SETSIZE
#define FD_SETSIZE 256
#endif
#endif
|