From 960a0f0a994ba23480e14ffe5179160194fd9616 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 5 Aug 2008 20:08:19 +0000 Subject: r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400 Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435 --- src/or/rendclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/rendclient.c') diff --git a/src/or/rendclient.c b/src/or/rendclient.c index 394e0eca81..e05fef90e8 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -124,7 +124,7 @@ rend_client_send_introduction(origin_circuit_t *introcirc, int klen; tmp[0] = 2; /* version 2 of the cell format */ /* nul pads */ - set_uint32(tmp+1, htonl(extend_info->addr)); + set_uint32(tmp+1, tor_addr_to_ipv4h(&extend_info->addr)); set_uint16(tmp+5, htons(extend_info->port)); memcpy(tmp+7, extend_info->identity_digest, DIGEST_LEN); klen = crypto_pk_asn1_encode(extend_info->onion_key, tmp+7+DIGEST_LEN+2, -- cgit v1.2.3-54-g00ecf