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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
/* ns_func.h - declarations for ns_*.c's externally visible functions
*
* $Id: ns_func.h,v 8.13 1996/11/11 06:36:49 vixie Exp $
*/
/* ++from ns_resp.c++ */
extern void ns_resp __P((u_char *, int)),
prime_cache __P((void)),
delete_all __P((struct namebuf *, int, int)),
delete_stale __P((struct namebuf *));
extern struct qinfo *sysquery __P((const char *, int, int,
struct in_addr *, int, int));
extern struct notify *findNotifyPeer __P((const struct zoneinfo *,
struct in_addr));
extern void sysnotify __P((const char *, int, int));
extern int doupdate __P((u_char *, int, u_char *, int,
struct databuf **, int, u_int)),
send_msg __P((u_char *, int, struct qinfo *)),
findns __P((struct namebuf **, int,
struct databuf **, int *, int)),
finddata __P((struct namebuf *, int, int, HEADER *,
char **, int *, int *)),
wanted __P((struct databuf *, int, int)),
add_data __P((struct namebuf *,
struct databuf **,
u_char *, int, int *));
/* --from ns_resp.c-- */
/* ++from ns_req.c++ */
extern void ns_req __P((u_char *, int, int,
struct qstream *,
struct sockaddr_in *,
int)),
free_addinfo __P((void)),
free_nsp __P((struct databuf **));
extern int stale __P((struct databuf *)),
make_rr __P((const char *, struct databuf *,
u_char *, int, int)),
doaddinfo __P((HEADER *, u_char *, int)),
doaddauth __P((HEADER *, u_char *, int,
struct namebuf *,
struct databuf *));
#ifdef BIND_NOTIFY
extern int findZonePri __P((const struct zoneinfo *,
const struct sockaddr_in *));
#endif
/* --from ns_req.c-- */
/* ++from ns_forw.c++ */
extern time_t retrytime __P((struct qinfo *));
extern int ns_forw __P((struct databuf *nsp[],
u_char *msg,
int msglen,
struct sockaddr_in *fp,
struct qstream *qsp,
int dfd,
struct qinfo **qpp,
char *dname,
int class, int type,
struct namebuf *np)),
haveComplained __P((const char *, const char *)),
nslookup __P((struct databuf *nsp[],
struct qinfo *qp,
const char *syslogdname,
const char *sysloginfo)),
qcomp __P((struct qserv *, struct qserv *));
extern struct qdatagram *aIsUs __P((struct in_addr));
extern void schedretry __P((struct qinfo *, time_t)),
unsched __P((struct qinfo *)),
retry __P((struct qinfo *)),
qflush __P((void)),
qremove __P((struct qinfo *)),
nsfree __P((struct qinfo *, char *)),
qfree __P((struct qinfo *));
extern struct qinfo *qfindid __P((u_int16_t)),
*qnew __P((const char *, int, int));
/* --from ns_forw.c-- */
/* ++from ns_main.c++ */
extern u_int32_t net_mask __P((struct in_addr));
extern void sqrm __P((struct qstream *)),
sqflush __P((struct qstream *allbut)),
dqflush __P((time_t gen)),
sq_done __P((struct qstream *)),
ns_setproctitle __P((char *, int)),
getnetconf __P((void)),
nsid_init __P((void));
extern u_int16_t nsid_next __P((void));
extern struct netinfo *findnetinfo __P((struct in_addr));
/* --from ns_main.c-- */
/* ++from ns_maint.c++ */
extern void ns_maint __P((void)),
sched_maint __P((void)),
#ifdef CLEANCACHE
remove_zone __P((struct hashbuf *, int, int)),
#else
remove_zone __P((struct hashbuf *, int)),
#endif
#ifdef PURGE_ZONE
purge_zone __P((const char *, struct hashbuf *, int)),
#endif
loadxfer __P((void)),
qserial_query __P((struct zoneinfo *)),
qserial_answer __P((struct qinfo *, u_int32_t));
extern void holdsigchld __P((void));
extern void releasesigchld __P((void));
extern SIG_FN reapchild __P(());
extern void endxfer __P((void));
extern const char * zoneTypeString __P((const struct zoneinfo *));
#ifdef DEBUG
extern void printzoneinfo __P((int));
#endif
/* --from ns_maint.c-- */
/* ++from ns_sort.c++ */
extern struct netinfo *local __P((struct sockaddr_in *));
extern void sort_response __P((u_char *, int,
struct netinfo *,
u_char *));
/* --from ns_sort.c-- */
/* ++from ns_init.c++ */
extern void ns_refreshtime __P((struct zoneinfo *, time_t)),
ns_retrytime __P((struct zoneinfo *, time_t)),
ns_init __P((char *));
extern enum context ns_ptrcontext __P((const char *owner));
extern enum context ns_ownercontext __P((int type, enum transport));
extern int ns_nameok __P((const char *name, int class,
enum transport, enum context,
const char *owner,
struct in_addr source));
extern int ns_wildcard __P((const char *name));
/* --from ns_init.c-- */
/* ++from ns_ncache.c++ */
extern void cache_n_resp __P((u_char *, int));
/* --from ns_ncache.c-- */
/* ++from ns_udp.c++ */
extern void ns_udp __P((void));
/* --from ns_udp.c-- */
/* ++from ns_stats.c++ */
extern void ns_stats __P((void));
#ifdef XSTATS
extern void ns_logstats __P((void));
#endif
extern void qtypeIncr __P((int qtype));
extern struct nameser *nameserFind __P((struct in_addr addr, int flags));
#define NS_F_INSERT 0x0001
extern void nameserIncr __P((struct in_addr addr,
enum nameserStats which));
/* --from ns_stats.c-- */
/* ++from ns_validate.c++ */
extern int
#ifdef NCACHE
validate __P((char *, char *, struct sockaddr_in *,
int, int, char *, int, int)),
#else
validate __P((char *, char *, struct sockaddr_in *,
int, int, char *, int)),
#endif
dovalidate __P((u_char *, int, u_char *, int, int,
char *, struct sockaddr_in *, int *)),
update_msg __P((u_char *, int *, int Vlist[], int));
extern void store_name_addr __P((const char *, struct in_addr,
const char *, const char *));
/* --from ns_validate.c-- */
|