aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/routerstatus_st.h
diff options
context:
space:
mode:
authorVictor Nepveu <victor.nepveu@imt-atlantique.net>2019-11-12 22:27:36 +0100
committerNick Mathewson <nickm@torproject.org>2020-01-16 10:39:15 -0500
commit594e5ce635481a2aca60bbb31b656e3970ad511b (patch)
treee1a5758f4c6b446b17d3da42b3d22620e4f65200 /src/feature/nodelist/routerstatus_st.h
parent17c63ff9f64c9f678f566bca70497992f5d4d04d (diff)
downloadtor-594e5ce635481a2aca60bbb31b656e3970ad511b.tar.gz
tor-594e5ce635481a2aca60bbb31b656e3970ad511b.zip
Refactor routerstatus_has_changed function
- Check all fields that might change in a routerstatus - Document the refactoring Signed-off-by: Victor Nepveu <victor.nepveu@imt-atlantique.net>
Diffstat (limited to 'src/feature/nodelist/routerstatus_st.h')
-rw-r--r--src/feature/nodelist/routerstatus_st.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/nodelist/routerstatus_st.h b/src/feature/nodelist/routerstatus_st.h
index 270cb871a2..eb6c3e5cfc 100644
--- a/src/feature/nodelist/routerstatus_st.h
+++ b/src/feature/nodelist/routerstatus_st.h
@@ -17,6 +17,10 @@
/** Contents of a single router entry in a network status object.
*/
struct routerstatus_t {
+ /* This should be kept in sync with the function
+ * routerstatus_has_changed and the printing function
+ * routerstatus_format_entry in NS_CONTROL_PORT mode.
+ */
time_t published_on; /**< When was this router published? */
char nickname[MAX_NICKNAME_LEN+1]; /**< The nickname this router says it
* has. */