/[muddleftpd]/muddleftpd/src/ftpd.h
ViewVC logotype

Diff of /muddleftpd/src/ftpd.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by rugger, Sun Nov 2 13:06:10 2003 UTC revision 1.2.4.1 by rugger, Tue Nov 4 15:41:22 2003 UTC
# Line 250  typedef struct Line 250  typedef struct
250  typedef struct  typedef struct
251  {  {
252          int count;          int count;
253            int defaultret;
254          IPACL *list;          IPACL *list;
255  } IPACLLIST;  } IPACLLIST;
256    
# Line 313  typedef struct configdata Line 314  typedef struct configdata
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
# Line 659  int ftp_lister(FTPSTATE *peer, char *par Line 670  int ftp_lister(FTPSTATE *peer, char *par
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    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26