summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-01-24 13:26:50 -0500
committerNick Mathewson <nickm@torproject.org>2018-01-24 13:53:55 -0500
commitd9fbd34f42274050a67f6fb6f7ad449d60af7e66 (patch)
tree08d1af4bf353d94b7f2a665ad3285ccd757b7fb4 /src/or/routerlist.c
parentfd8ee1d7c335a02a6fd29cd1a826037efe28e100 (diff)
downloadtor-d9fbd34f42274050a67f6fb6f7ad449d60af7e66.tar.gz
tor-d9fbd34f42274050a67f6fb6f7ad449d60af7e66.zip
Extract protover summary flags into a new structure
This will let us use them on routerinfo_t as well as on routerstatus_t, and save some time on relays. No behavioral changes here.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 2815c60963..061eba2d22 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -5665,11 +5665,11 @@ routerstatus_version_supports_extend2_cells(const routerstatus_t *rs,
return allow_unknown_versions;
}
- if (!rs->protocols_known) {
+ if (!rs->pv.protocols_known) {
return allow_unknown_versions;
}
- return rs->supports_extend2_cells;
+ return rs->pv.supports_extend2_cells;
}
/** Assert that the internal representation of <b>rl</b> is