aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorCaio Valente <valentecaio95@gmail.com>2018-03-06 20:42:32 +0100
committerCaio Valente <valentecaio95@gmail.com>2018-03-06 20:42:32 +0100
commit8775c93a996fd864b1747c04eebe51534425ff51 (patch)
tree3e6c8b02de242582b8be67d537f47bc167fc83b5 /src/or/or.h
parent699bb803baba942c6bcd50542183b283fa191163 (diff)
downloadtor-8775c93a996fd864b1747c04eebe51534425ff51.tar.gz
tor-8775c93a996fd864b1747c04eebe51534425ff51.zip
Refactor: suppress duplicated functions from router.c and encapsulate NODE_DESC_BUF_LEN constant.
Also encapsulates format_node_description(). Closes ticket 25432.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 045cdd9e14..ecee534fee 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2343,10 +2343,10 @@ typedef struct routerstatus_t {
* If it's a descriptor, we only use the first DIGEST_LEN bytes. */
char descriptor_digest[DIGEST256_LEN];
uint32_t addr; /**< IPv4 address for this router, in host order. */
- uint16_t or_port; /**< OR port for this router. */
+ uint16_t or_port; /**< IPv4 OR port for this router. */
uint16_t dir_port; /**< Directory port for this router. */
tor_addr_t ipv6_addr; /**< IPv6 address for this router. */
- uint16_t ipv6_orport; /**<IPV6 OR port for this router. */
+ uint16_t ipv6_orport; /**< IPv6 OR port for this router. */
unsigned int is_authority:1; /**< True iff this router is an authority. */
unsigned int is_exit:1; /**< True iff this router is a good exit. */
unsigned int is_stable:1; /**< True iff this router stays up a long time. */