250 |
typedef struct |
typedef struct |
251 |
{ |
{ |
252 |
int count; |
int count; |
253 |
|
int defaultret; |
254 |
IPACL *list; |
IPACL *list; |
255 |
} IPACLLIST; |
} IPACLLIST; |
256 |
|
|
314 |
int zerobind; /* bind all ports using address 0.0.0.0, use |
int zerobind; /* bind all ports using address 0.0.0.0, use |
315 |
with smartbind on Freebsd to use |
with smartbind on Freebsd to use |
316 |
virtual servers */ |
virtual servers */ |
317 |
|
int pasvport_first; /* When a passive connection is to be made */ |
318 |
|
int pasvport_last; /* this can specify what ports can be used */ |
319 |
|
/* useful for firewalls or NAT */ |
320 |
|
int natip; /* if the ftp server is behind NAT, this stores */ |
321 |
|
/* the real IP address */ |
322 |
|
IPACLLIST *nat_localips; /* if the ftp server is behind NAT, this stores */ |
323 |
|
/* the access list that determines if the what IP */ |
324 |
|
/* to show for the PASV command */ |
325 |
|
|
326 |
char *hostname; /* Computer host name */ |
char *hostname; /* Computer host name */ |
327 |
VSERVER *defaults; /* Default values for VSERVER */ |
VSERVER *defaults; /* Default values for VSERVER */ |
328 |
VSERVER *defaulthost; /* The default host for hostvservers */ |
VSERVER *defaulthost; /* The default host for hostvservers */ |
329 |
char **vserverlist; /* list of virtual servers names */ |
char **vserverlist; /* list of virtual servers names */ |
330 |
VSERVER *vservers; /* virtual server list */ |
VSERVER *vservers; /* virtual server list */ |
331 |
VSERVERCONN *inports; /* input ports */ |
VSERVERCONN *inports; /* input ports */ |
332 |
|
|
333 |
} CONFIGDATA; |
} CONFIGDATA; |
334 |
|
|
335 |
typedef struct ftpstate |
typedef struct ftpstate |
670 |
/* checkip.h */ |
/* checkip.h */ |
671 |
|
|
672 |
int checknamelist(CONFIGFILECACHE *cf, int section, char *username); |
int checknamelist(CONFIGFILECACHE *cf, int section, char *username); |
673 |
IPACLLIST *ipacllist_new(CONFIGFILECACHE *cf, int section, char *name); |
IPACLLIST *ipacllist_new(CONFIGFILECACHE *cf, int section, char *setting, char acceptchar, int defaultret); |
674 |
void ipacllist_destroy(IPACLLIST *list); |
void ipacllist_destroy(IPACLLIST *list); |
675 |
int user_allowed(IPACLLIST *list, int ip, char *hostname); |
int ipacllist_query(IPACLLIST *list, int ip, char *hostname); |
676 |
|
|
677 |
/* ftpstate.h */ |
/* ftpstate.h */ |
678 |
|
|