Changeset 1259:82280e745a89 in freeDiameter for extensions/rt_redirect/rt_redir.h
- Timestamp:
- Mar 24, 2014, 9:13:38 PM (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rt_redirect/rt_redir.h
r1235 r1259 39 39 /* There are 2 locks in this module. The priority is established as follow to avoid deadlocks: 40 40 exp_peer mutex > usages rwlock. 41 (e.g., the rwlock can be taken while holding the mutex, but not the other way) 41 (e.g., the rwlock can be taken while holding the mutex, but not the other way) 42 42 */ 43 43 … … 59 59 /* Expiration time set for DONT_CACHE tasks, so that the entry is found when the code is called back */ 60 60 #define DEFAULT_EXPIRE_TIME 10 /* seconds */ 61 61 62 62 /* Structure to store a parsed Redirect-Host */ 63 63 struct redir_host { 64 struct fd_list chain; 65 64 struct fd_list chain; 65 66 66 DiamId_t id; /* malloc'd */ 67 67 size_t len; 68 /* We don't use the following yet because we don't support dynamic new connections 68 /* We don't use the following yet because we don't support dynamic new connections 69 69 int secure; 70 70 uint16_t port; … … 117 117 } user; 118 118 }; 119 119 120 120 121 121 /* Structure to store a Redirect indication */ 122 122 struct redir_entry { 123 123 uint32_t eyec; /* must be REDIR_ENTRY_EYEC, used for debug only */ 124 124 125 125 struct { 126 126 os0_t s; /* alloc'd, must be freed */ … … 132 132 struct timespec timeout; /* When does this entry expires? */ 133 133 struct fd_list exp_list; /* chain in the expire_list list, ordered by expiration date, protected by exp_peer_lock */ 134 134 135 135 enum redir_h_u type; /* Type of this entry */ 136 136 struct fd_list redir_list; /* link in redirects_usages lists. Lists are ordered by the data value. Protected by rw locks */
Note: See TracChangeset
for help on using the changeset viewer.