Changeset 17876 for src/router/proftpd/include/proftpd.h
- Timestamp:
- 11/11/11 13:17:43 (19 months ago)
- File:
-
- 1 edited
-
src/router/proftpd/include/proftpd.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/proftpd/include/proftpd.h
r14672 r17876 3 3 * Copyright (c) 1997, 1998 Public Flood Software 4 4 * Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net> 5 * Copyright (c) 2001-20 08The ProFTPD Project team5 * Copyright (c) 2001-2011 The ProFTPD Project team 6 6 * 7 7 * This program is free software; you can redistribute it and/or modify … … 17 17 * You should have received a copy of the GNU General Public License 18 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 5 9 Temple Place, Suite 330, Boston, MA 02111-1307, USA.19 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. 20 20 * 21 21 * As a special exemption, Public Flood Software/MacGyver aka Habeeb J. Dihu … … 26 26 27 27 /* General options 28 * $Id: proftpd.h,v 1. 60 2009/09/02 17:58:53castaglia Exp $28 * $Id: proftpd.h,v 1.71 2011/09/21 05:40:04 castaglia Exp $ 29 29 */ 30 30 … … 64 64 struct cmd_struc; 65 65 struct config_struc; 66 struct modret_struc; 66 67 67 68 typedef struct { … … 124 125 125 126 int wtmp_log; /* Are we logging to wtmp? */ 127 int multiline_rfc2228; /* Are we using RFC2228-style multiline responses ? */ 128 126 129 struct conn_struc *c; /* Control connection */ 127 130 struct conn_struc *d; /* Data connection */ … … 135 138 136 139 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 137 143 int curr_phase; /* Current handler phase */ 138 144 … … 177 183 unsigned int total_files_xfer; 178 184 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 179 203 } session_t; 180 204 … … 193 217 extern char AddressCollisionCheck; 194 218 extern char ServerType; 195 extern char MultilineRFC2228;196 219 197 220 /* Session/State flags */ … … 245 268 #define PR_TIMER_SESSION 5 246 269 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 247 292 /* Misc Prototypes */ 248 249 void end_login(int);250 293 void pr_signals_handle(void); 251 294 void session_exit(int, void *, int, void *);
Note: See TracChangeset
for help on using the changeset viewer.
