1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- $OpenBSD: patch-opennap_h,v 1.3 2016/09/10 13:03:41 ajacoutot Exp $
- --- opennap.h.orig Mon Oct 1 00:12:37 2001
- +++ opennap.h Sat Sep 10 10:44:09 2016
- @@ -16,6 +16,8 @@
- #endif
-
- #include <stdarg.h>
- +
- +#include <sys/select.h>
- #include <sys/types.h>
- #include <zlib.h>
- #include "hash.h"
- @@ -143,9 +145,26 @@ struct _user
- NOTE. this is a pointer to an entry in
- Server_Names, and not malloc'd. */
-
- + time_t connected;
- + LIST *channels;
- + CONNECTION *con;
- +
- + unsigned int libsize;
- + unsigned int ip;
- +
- unsigned short uploads;
- unsigned short downloads;
- + unsigned short port;
- + unsigned short conport;
- + unsigned short totalup;
- + unsigned short totaldown;
-
- + unsigned short shared;
- + unsigned short wantPong;
- +
- + unsigned short yyy;
- +
- unsigned int level:3;
- unsigned int speed:4;
- unsigned int local:1;
- @@ -154,20 +173,6 @@ struct _user
- unsigned int unsharing:1;
- unsigned int cloaked:1;
- unsigned int xxx:4;
- - unsigned short shared;
- -
- - unsigned short totalup;
- - unsigned short totaldown;
- -
- - unsigned int libsize;
- - unsigned int ip;
- -
- - unsigned short port;
- - unsigned short conport;
- - time_t connected;
- - LIST *channels;
- - CONNECTION *con;
- };
-
- enum
- @@ -486,6 +491,7 @@ extern HASH *MD5;
- extern int Stats_Port;
- #endif
-
- +extern int gBlockWinMX;
- extern HASH *Channel_Db;
- extern int Client_Queue_Length;
- extern HASH *Client_Versions;
- @@ -835,6 +841,7 @@ int config (int);
- void config_defaults (void);
- USERDB *create_db (USER *);
- void destroy_connection (CONNECTION *);
- +void discipline_user (USER *);
- void dump_channels (void);
- void exec_timers (time_t);
- void expand_hex (char *, int);
|