mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Remove a redundant typedef in addr_policy_st.h
This commit is contained in:
parent
23cb9a046c
commit
4ac87a430f
@ -18,7 +18,7 @@ typedef enum {
|
|||||||
#define addr_policy_action_bitfield_t ENUM_BF(addr_policy_action_t)
|
#define addr_policy_action_bitfield_t ENUM_BF(addr_policy_action_t)
|
||||||
|
|
||||||
/** A reference-counted address policy rule. */
|
/** A reference-counted address policy rule. */
|
||||||
typedef struct addr_policy_t {
|
struct addr_policy_t {
|
||||||
int refcnt; /**< Reference count */
|
int refcnt; /**< Reference count */
|
||||||
/** What to do when the policy matches.*/
|
/** What to do when the policy matches.*/
|
||||||
addr_policy_action_bitfield_t policy_type:2;
|
addr_policy_action_bitfield_t policy_type:2;
|
||||||
@ -41,6 +41,6 @@ typedef struct addr_policy_t {
|
|||||||
tor_addr_t addr;
|
tor_addr_t addr;
|
||||||
uint16_t prt_min; /**< Lowest port number to accept/reject. */
|
uint16_t prt_min; /**< Lowest port number to accept/reject. */
|
||||||
uint16_t prt_max; /**< Highest port number to accept/reject. */
|
uint16_t prt_max; /**< Highest port number to accept/reject. */
|
||||||
} addr_policy_t;
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user