Ignore:
Timestamp:
11/11/11 13:17:43 (19 months ago)
Author:
BrainSlayer
Message:

update proftp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/proftpd/include/proftpd.h

    r14672 r17876  
    33 * Copyright (c) 1997, 1998 Public Flood Software 
    44 * Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net> 
    5  * Copyright (c) 2001-2008 The ProFTPD Project team 
     5 * Copyright (c) 2001-2011 The ProFTPD Project team 
    66 * 
    77 * This program is free software; you can redistribute it and/or modify 
     
    1717 * You should have received a copy of the GNU General Public License 
    1818 * along with this program; if not, write to the Free Software 
    19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA. 
     19 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. 
    2020 * 
    2121 * As a special exemption, Public Flood Software/MacGyver aka Habeeb J. Dihu 
     
    2626 
    2727/* General options 
    28  * $Id: proftpd.h,v 1.60 2009/09/02 17:58:53 castaglia Exp $ 
     28 * $Id: proftpd.h,v 1.71 2011/09/21 05:40:04 castaglia Exp $ 
    2929 */ 
    3030 
     
    6464struct cmd_struc; 
    6565struct config_struc; 
     66struct modret_struc; 
    6667 
    6768typedef struct { 
     
    124125 
    125126  int wtmp_log;                         /* Are we logging to wtmp? */ 
     127  int multiline_rfc2228;                /* Are we using RFC2228-style multiline responses ? */ 
     128 
    126129  struct conn_struc *c;                 /* Control connection */ 
    127130  struct conn_struc *d;                 /* Data connection */ 
     
    135138 
    136139  char *curr_cmd;                       /* Current FTP command */ 
     140  int curr_cmd_id;                      /* Current FTP command ID */ 
     141  struct cmd_struc *curr_cmd_rec;       /* Current command */ 
     142 
    137143  int curr_phase;                       /* Current handler phase */ 
    138144 
     
    177183  unsigned int total_files_xfer; 
    178184 
     185  /* Total number of "raw" protocol bytes read in from the network for 
     186   * the session. 
     187   */ 
     188  off_t total_raw_in; 
     189 
     190  /* Total number of "raw" protocol bytes written out to the network for 
     191   * the session. 
     192   */ 
     193  off_t total_raw_out; 
     194 
     195  /* Reason code for end of session/disconnection; in reality, the values 
     196   * come from the pr_disconnect_reason_e enum in session.h. 
     197   */ 
     198  int disconnect_reason; 
     199 
     200  /* Module which disconnected/ended the session */ 
     201  struct module_struc *disconnect_module; 
     202 
    179203} session_t; 
    180204 
     
    193217extern char AddressCollisionCheck; 
    194218extern char ServerType; 
    195 extern char MultilineRFC2228; 
    196219 
    197220/* Session/State flags */ 
     
    245268#define PR_TIMER_SESSION        5 
    246269 
     270/* Developer code */ 
     271 
     272#ifdef PR_DEVEL_TIMING 
     273# define PR_DEVEL_CLOCK(code) \ 
     274  { \ 
     275    int local_errno; \ 
     276    struct timeval local_before, local_after, local_since; \ 
     277    timerclear(&local_before); \ 
     278    timerclear(&local_after); \ 
     279    timerclear(&local_since); \ 
     280    (void) gettimeofday(&local_before, NULL); \ 
     281    (code); \ 
     282    local_errno = errno; \ 
     283    (void) gettimeofday(&local_after, NULL); \ 
     284    timersub(&local_after, &local_before, &local_since); \ 
     285    (void) pr_trace_msg("timing", 9, "code at %s:%d took %lu sec, %lu usec", __FILE__, __LINE__, (unsigned long) local_since.tv_sec, (unsigned long) local_since.tv_usec); \ 
     286    errno = local_errno; \ 
     287  } 
     288#else 
     289# define PR_DEVEL_CLOCK(code)   (code) 
     290#endif /* PR_DEVEL_TIMING */ 
     291 
    247292/* Misc Prototypes */ 
    248  
    249 void end_login(int); 
    250293void pr_signals_handle(void); 
    251294void session_exit(int, void *, int, void *); 
Note: See TracChangeset for help on using the changeset viewer.