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

Comparing ircd-hybrid/branches/8.2.x/include/ipcache.h (file contents):
Revision 10004 by michael, Fri Jan 1 04:43:42 2021 UTC vs.
Revision 10005 by michael, Mon Jun 28 12:10:15 2021 UTC

# Line 29 | Line 29
29  
30   struct ip_entry
31   {
32 <  dlink_node node;                /**< List node; linked into ipcache_list */
33 <  void *trie_pointer;             /**< Pointer to 'patricia_tree_t' item */
34 <  unsigned int count_local;       /**< Number of local users using this IP */
35 <  unsigned int count_remote;      /**< Number of remote users using this IP */
32 >  dlink_node node;  /**< List node; linked into ipcache_list */
33 >  void *trie_pointer;  /**< Pointer to 'patricia_tree_t' item */
34 >  unsigned int count_local;  /**< Number of local users using this IP */
35 >  unsigned int count_remote;  /**< Number of remote users using this IP */
36    unsigned int connection_count;  /**< Number of connections from this IP in the last throttle_time duration */
37 <  uintmax_t last_attempt;         /**< The last time someone connected from this IP; monotonic time */
37 >  uintmax_t last_attempt;  /**< The last time someone connected from this IP; monotonic time */
38   };
39  
40   extern struct ip_entry *ipcache_record_find_or_add(void *);
41   extern void ipcache_record_remove(void *, bool);
42   extern void ipcache_get_stats(unsigned int *const, size_t *const);
43   extern void ipcache_init(void);
44 < #endif
44 > #endif  /* INCLUDED_ipcache_h */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines