diff options
Diffstat (limited to 'cpukit/ftpd/ftpd.h')
-rw-r--r-- | cpukit/ftpd/ftpd.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/ftpd/ftpd.h b/cpukit/ftpd/ftpd.h index cfc5efe69b..678baa3d2b 100644 --- a/cpukit/ftpd/ftpd.h +++ b/cpukit/ftpd/ftpd.h @@ -10,6 +10,14 @@ #define FTPD_CONTROL_PORT 21 +/* FTPD access control flags */ +enum +{ + FTPD_NO_WRITE = 0x1, + FTPD_NO_READ = 0x2, + FTPD_NO_RW = FTPD_NO_WRITE | FTPD_NO_READ +}; + typedef int (*rtems_ftpd_hookfunction)(unsigned char *, unsigned long); struct rtems_ftpd_hook @@ -27,6 +35,11 @@ struct rtems_ftpd_configuration struct rtems_ftpd_hook *hooks; /* List of hooks */ char const *root; /* Root for FTPD or 0 for / */ int tasks_count; /* Max. connections */ + int idle; /* Idle timeout in seoconds + or 0 for no (inf) timeout */ + int access; /* 0 - r/w, 1 - read-only, + 2 - write-only, + 3 - browse-only */ }; /* |