tor/src/or
teor 20b0e9e07d
Remove buggy IPv6 support from hs_get_extend_info_from_lspecs()
The previous version of this function has the following issues:
* it doesn't choose between IPv4 and IPv6 addresses correctly, and
* it doesn't fall back to a 3-hop path when the address for a direct
  connection is unreachable.
But we can't fix these things in a bugfix release.

Instead, treat IPv6 addresses like any other unrecognised link specifier
and ignore them. If there is no IPv4 address, return NULL.

This supports v3 hidden services on IPv4, dual-stack, and IPv6, and
v3 single onion services on IPv4 only.

Part of 23820, bugfix on 0.3.2.1-alpha.
2017-10-26 14:38:06 +11:00
..
addressmap.c Replace accumulated C ;;s with ;s 2017-09-15 16:43:17 -04:00
addressmap.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
bridges.c Merge remote-tracking branch 'catalyst-oniongit/bug20532_031' into maint-0.3.2 2017-10-24 19:41:26 -04:00
bridges.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
channel.c Merge branch 'bug22805_v2_squashed' 2017-09-22 08:58:17 -04:00
channel.h Merge branch 'bug22805_v2_squashed' 2017-09-22 08:58:17 -04:00
channelpadding.c Merge branch 'bug22805_v2_squashed' 2017-09-22 08:58:17 -04:00
channelpadding.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
channeltls.c Fix a comment that misunderstood is_canonical 2017-09-20 09:41:01 -04:00
channeltls.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circpathbias.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circpathbias.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circuitbuild.c Merge branch 'bug22805_v2_squashed' 2017-09-22 08:58:17 -04:00
circuitbuild.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circuitlist.c Merge branch 'maint-0.2.8' into maint-0.2.9 2017-10-23 08:53:25 -04:00
circuitlist.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circuitmux_ewma.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
circuitmux_ewma.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circuitmux.c Merge branch 'scan-build-032' 2017-09-15 16:40:11 -04:00
circuitmux.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circuitstats.c Correct two state-file variable types. 2017-09-26 12:25:01 -04:00
circuitstats.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
circuituse.c circuit: Log n_circ_id and global identifier of HS circuits 2017-09-25 16:21:04 -04:00
circuituse.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
command.c Merge branch 'bug22805_v2_squashed' 2017-09-22 08:58:17 -04:00
command.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
config.c Merge branch 'feature18329_029_squashed' into maint-0.3.2 2017-10-24 19:35:28 -04:00
config.h Merge branch 'feature18329_029_squashed' into maint-0.3.2 2017-10-24 19:35:28 -04:00
confparse.c Delete useless checks in confparse.c 2017-05-02 16:12:30 -04:00
confparse.h Eat redundant semicolons 2017-09-26 15:12:34 -04:00
connection_edge.c hs-v3: Don't fetch descriptor if we have a pending request 2017-09-27 09:24:35 -04:00
connection_edge.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
connection_or.c Improve comments around connection_or_client_used() 2017-09-19 14:30:27 +10:00
connection_or.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
connection.c Merge remote-tracking branch 'teor/minor-comments' 2017-09-19 08:24:49 -04:00
connection.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
conscache.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
conscache.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
consdiff.c Request (and try to use) consensus diffs. 2017-05-04 08:37:41 -04:00
consdiff.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
consdiffmgr.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
consdiffmgr.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
control.c Replace accumulated C ;;s with ;s 2017-09-15 16:43:17 -04:00
control.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
cpuworker.c Merge branch 'maint-0.3.1' 2017-07-27 16:30:52 -04:00
cpuworker.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dircollate.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
dircollate.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
directory.c Remove the length limit from write_http_status_line 2017-10-23 09:21:22 -04:00
directory.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dirserv.c Merge branch 'maint-0.2.9' into maint-0.3.0 2017-10-23 08:46:29 -04:00
dirserv.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dirvote.c Fix warnings about passing uninitialized buffers into functions 2017-09-12 21:32:42 -04:00
dirvote.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dns_structs.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dns.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dns.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dnsserv.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
dnsserv.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
entrynodes.c entrynodes: Better naming for dir info check functions. 2017-10-03 15:55:19 +03:00
entrynodes.h entrynodes: Better naming for dir info check functions. 2017-10-03 15:55:19 +03:00
ext_orport.c Warn on ExtORPort USERADDR that is missing or 0. 2017-09-20 08:50:49 -04:00
ext_orport.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
fallback_dirs.inc Update fallback directory mirrors in May 2017 2017-05-16 19:02:42 +10:00
fp_pair.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
fp_pair.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
geoip.c New GETINFO target to check if geoip is loaded 2017-08-25 12:25:05 -04:00
geoip.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hibernate.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hibernate.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_cache.c prop224: Set stricter expiration time of cached client descriptors. 2017-09-13 14:54:49 -04:00
hs_cache.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_cell.c prop224: Add a function to clear INTRO data 2017-08-24 13:03:28 -04:00
hs_cell.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_circuit.c prop224: Add test for parsing RENDEZVOUS1 cell. 2017-09-25 15:00:06 +03:00
hs_circuit.h prop224: Add test for parsing RENDEZVOUS1 cell. 2017-09-25 15:00:06 +03:00
hs_circuitmap.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_circuitmap.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_client.c test: Add an HS v3 descriptor fetch unit test 2017-10-03 10:56:46 -04:00
hs_client.h test: Add an HS v3 descriptor fetch unit test 2017-10-03 10:56:46 -04:00
hs_common.c Remove buggy IPv6 support from hs_get_extend_info_from_lspecs() 2017-10-26 14:38:06 +11:00
hs_common.h hs: Pad RENDEZVOUS1 v3 cell to match length of v2 2017-09-19 09:13:28 -04:00
hs_config.c prop224: Move service version into config object 2017-07-13 16:50:09 -04:00
hs_config.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_descriptor.c test: Fix memory leak in hs_descriptor/decode_bad_signature 2017-09-05 09:26:21 -04:00
hs_descriptor.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_ident.c hs-v3: Cancel active descriptor directory connections before uploading 2017-09-12 01:32:04 +03:00
hs_ident.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_intropoint.c hs: Avoid possible double circuit close on error 2017-09-22 09:09:13 -04:00
hs_intropoint.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_ntor.c Explicit length checks in create_rend_cpath(). 2017-07-07 11:12:27 -04:00
hs_ntor.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
hs_service.c hs-v3: Always generate the public key file on disk 2017-10-03 11:19:10 -04:00
hs_service.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
include.am sched: Groundwork before KIST implementation 2017-09-15 11:40:59 -04:00
keypin.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
keypin.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
main.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
main.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
Makefile.nmake Netflow record collapsing defense. 2017-05-08 13:49:21 -04:00
microdesc.c general formatting / whitespace / typo fixes 2017-07-01 17:56:06 -04:00
microdesc.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
networkstatus.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
networkstatus.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
nodelist.c Merge branch 'maint-0.3.1' into maint-0.3.2 2017-10-23 15:55:48 -04:00
nodelist.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
ntmain.c Merge remote-tracking branch 'public/bug23081_025' into maint-0.2.9 2017-10-23 08:47:52 -04:00
ntmain.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
onion_fast.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion_fast.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
onion_ntor.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
onion_ntor.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
onion_tap.c Rename the hybrid_encrypt/decrypt functions; label them as dangerous 2017-07-24 14:34:53 -04:00
onion_tap.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
onion.c Fix ntohs() that should have been htons() 2017-08-04 12:17:53 -04:00
onion.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
or.h Merge branch 'feature18329_029_squashed' into maint-0.3.2 2017-10-24 19:35:28 -04:00
parsecommon.c Fix warnings about passing uninitialized buffers into functions 2017-09-12 21:32:42 -04:00
parsecommon.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
periodic.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
periodic.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
policies.c Switch to offsetof() 2017-08-03 08:56:35 -04:00
policies.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
proto_cell.c Add unit tests for var_cell and control0 proto functions. 2017-09-27 09:09:00 -04:00
proto_cell.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
proto_control0.c Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -04:00
proto_control0.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
proto_ext_or.c Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -04:00
proto_ext_or.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
proto_http.c Refactor buffer APIs to put a buf_t first. 2017-09-05 13:57:51 -04:00
proto_http.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
proto_socks.c Fix our "not an HTTP Proxy" message in light of HTTPTunnelPort 2017-10-02 12:53:13 -04:00
proto_socks.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
protover.c Dircache protocol version 2 adds support for diffs 2017-05-15 17:53:36 -04:00
protover.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
reasons.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
reasons.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
relay.c Merge branches 'bug8185_031' and 'bug8185_diagnostic_032' 2017-09-29 17:26:40 -04:00
relay.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
rendcache.c prop224: Purge client state on NEWNYM 2017-08-30 09:15:54 -04:00
rendcache.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
rendclient.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
rendclient.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
rendcommon.c Merge branch 'maint-0.3.1' 2017-08-25 11:39:38 -04:00
rendcommon.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
rendmid.c rephist: Remove unused crypto_pk statistics. 2017-07-13 20:24:48 +00:00
rendmid.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
rendservice.c hs-v2: Copy needed information between service on prunning 2017-10-25 11:21:28 -04:00
rendservice.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
rephist.c Merge branch 'maint-0.3.1' 2017-09-15 14:40:35 -04:00
rephist.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
replaycache.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
replaycache.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
router.c Merge branch 'feature18329_029_squashed' into maint-0.3.2 2017-10-24 19:35:28 -04:00
router.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
routerkeys.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
routerkeys.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
routerlist.c Replace accumulated C ;;s with ;s 2017-09-15 16:43:17 -04:00
routerlist.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
routerparse.c Merge branch 'scan-build-032' 2017-09-15 16:40:11 -04:00
routerparse.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
routerset.c Refactor node lookup APIs to take flags 2017-08-22 19:13:40 -04:00
routerset.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
scheduler_kist.c Merge remote-tracking branch 'dgoulet/ticket23696_032_01' 2017-09-29 17:46:50 -04:00
scheduler_vanilla.c sched: only log when scheduler type changes 2017-09-22 08:51:22 -04:00
scheduler.c Merge branch 'bug23539_032_01_squashed' 2017-09-25 11:12:56 -04:00
scheduler.h sched: make interval a plain int; initialize with macro 2017-09-25 11:11:30 -04:00
shared_random_state.c Add test to make sure all confparse variables are well-typed 2017-09-26 12:24:04 -04:00
shared_random_state.h Type bug in shared_random_state -- make sure Version is int. 2017-09-26 12:25:34 -04:00
shared_random.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
shared_random.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
statefile.c Add test to make sure all confparse variables are well-typed 2017-09-26 12:24:04 -04:00
statefile.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
status.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
status.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
tor_main.c Run the copyright update script. 2017-03-15 16:13:17 -04:00
torcert.c torcert.c: mark some lines unreachable by tests 2017-10-03 08:07:36 -04:00
torcert.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
transports.c Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00
transports.h Run our #else/#endif annotator on our source code. 2017-09-15 16:24:44 -04:00