ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/ipcache.h
(Generate patch)

Comparing ircd-hybrid/trunk/include/ipcache.h (file contents):
Revision 4329 by michael, Fri Aug 1 18:36:15 2014 UTC vs.
Revision 4372 by michael, Sun Aug 3 14:11:58 2014 UTC

# Line 28 | Line 28
28   #define INCLUDED_ipcache_h
29   #include "ircd_defs.h"
30  
31 < /* usually, with hash tables, you use a prime number...
31 > /*
32 > * Usually, with hash tables, you use a prime number...
33   * but in this case I am dealing with ip addresses,
34   * not ascii strings.
35   */
# Line 36 | Line 37
37  
38   struct ip_entry
39   {
40 <  dlink_node node;                /**< Doubly linked list node. */
41 <  struct irc_ssaddr ip;
40 >  dlink_node node;                /**< Doubly linked list node */
41 >  struct irc_ssaddr ip;           /**< Holds an IPv6 or IPv4 address */
42    unsigned int count;             /**< Number of registered users using this IP */
43    unsigned int connection_count;  /**< Number of connections from this IP in the last throttle_time duration */
44    time_t last_attempt;            /**< The last time someone connected from this IP */

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)