summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-15 23:15:24 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-15 23:15:24 +0000
commit3ad6dc0e2e91e094e082e767c71e6e1d91f5fca0 (patch)
treee0a42cb1c2dbd0f12509c7aad3292182c4c27887 /src/or/dirserv.c
parent95f6265a790a1a56ff284bbc8eb55e56583dada3 (diff)
downloadtor-3ad6dc0e2e91e094e082e767c71e6e1d91f5fca0.tar.gz
tor-3ad6dc0e2e91e094e082e767c71e6e1d91f5fca0.zip
r15806@catbus: nickm | 2007-10-15 19:14:57 -0400
Implement v3 networkstatus client code. Remove v2 networkstatus client code, except as needed for caches to fetch and serve v2 networkstatues and the routers they list. svn:r11957
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 12c4b39ddf..083ab5f22a 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2380,12 +2380,12 @@ generate_networkstatus_opinion(int v2)
}
{
- networkstatus_t *ns;
- if (!(ns = networkstatus_parse_from_string(status))) {
+ networkstatus_v2_t *ns;
+ if (!(ns = networkstatus_v2_parse_from_string(status))) {
log_err(LD_BUG,"Generated a networkstatus we couldn't parse.");
goto done;
}
- networkstatus_free(ns);
+ networkstatus_v2_free(ns);
}
{
@@ -2395,7 +2395,7 @@ generate_networkstatus_opinion(int v2)
*ns_ptr = new_cached_dir(status, now);
status = NULL; /* So it doesn't get double-freed. */
the_v2_networkstatus_is_dirty = 0;
- router_set_networkstatus((*ns_ptr)->dir, now, NS_GENERATED, NULL);
+ router_set_networkstatus_v2((*ns_ptr)->dir, now, NS_GENERATED, NULL);
r = *ns_ptr;
}