tor/src/or
Francisco Blas Izquierdo Riera (klondike) 39e71d8fa5 Use the appropriate call to getsockopt for IPv6 sockets
The original call to getsockopt to know the original address on transparently
proxyed sockets using REDIRECT in iptables failed with IPv6 addresses because
it assumed all sockets used IPv4.

This patch fixes this by using the appropriate options and adding the headers
containing the needed definitions for these.

This patch is released under the same license as the original file as
long as the author iscredited.

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
2014-12-23 10:51:33 -05:00
..
addressmap.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
addressmap.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
buffers.c Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
buffers.h Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
channel.c Fix a bunch of memory leaks in the unit tests. Found with valgrind 2014-12-22 12:27:26 -05:00
channel.h Fix a bunch of memory leaks in the unit tests. Found with valgrind 2014-12-22 12:27:26 -05:00
channeltls.c Merge branch 'ticket7356_squashed' 2014-12-21 14:48:53 -05:00
channeltls.h Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
circpathbias.c Using channel state lookup macros in circuitbias.c. 2014-12-21 14:48:38 -05:00
circpathbias.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
circuitbuild.c Merge branch 'ticket7356_squashed' 2014-12-21 14:48:53 -05:00
circuitbuild.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
circuitlist.c Merge branch 'ticket7356_squashed' 2014-12-21 14:48:53 -05:00
circuitlist.h Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
circuitmux_ewma.c Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
circuitmux_ewma.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
circuitmux.c Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
circuitmux.h Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
circuitstats.c Apply new calloc coccinelle patch 2014-11-02 11:56:02 -05:00
circuitstats.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
circuituse.c Merge remote-tracking branch 'dgoulet/bug13936_025_v2' 2014-12-19 09:38:46 -05:00
circuituse.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
command.c Add two hidden-service related statistics. 2014-12-19 10:35:25 -05:00
command.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
config_codedigest.c Resolve about 24 DOCDOCs 2012-06-05 00:17:54 -04:00
config.c Merge remote-tracking branch 'teor/bug14002-osx-transproxy-ipfw-pf' 2014-12-21 13:37:40 -05:00
config.h Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
confparse.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
confparse.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
connection_edge.c Use the appropriate call to getsockopt for IPv6 sockets 2014-12-23 10:51:33 -05:00
connection_edge.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
connection_or.c Merge branch 'ticket7356_squashed' 2014-12-21 14:48:53 -05:00
connection_or.h Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
connection.c Merge branch 'ticket7356_squashed' 2014-12-21 14:48:53 -05:00
connection.h Silence spurious clang warnings 2014-10-30 22:34:46 +11:00
control.c Merge branch 'feature9503_squashed' 2014-11-25 12:49:09 -05:00
control.h Adding REASON field to HS_DESC FAILED controller event. 2014-11-16 15:51:23 +02:00
cpuworker.c Apply new calloc coccinelle patch 2014-11-02 11:56:02 -05:00
cpuworker.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
directory.c when somebody uploads too much, say who tried it 2014-12-10 01:10:44 -05:00
directory.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
dirserv.c Renaming ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN. 2014-11-11 20:56:40 +02:00
dirserv.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
dirvote.c Apply new calloc coccinelle patch 2014-11-02 11:56:02 -05:00
dirvote.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
dns.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
dns.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
dnsserv.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
dnsserv.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
entrynodes.c Merge remote-tracking branch 'andrea/ticket6456' 2014-11-04 09:52:04 -05:00
entrynodes.h Merge remote-tracking branch 'andrea/ticket6456' 2014-11-04 09:52:04 -05:00
eventdns_tor.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
ext_orport.c Restore functionality for CookieAuthFileGroupReadable. 2014-08-15 08:30:44 -04:00
ext_orport.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
fp_pair.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
fp_pair.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
geoip.c Apply new calloc coccinelle patch 2014-11-02 11:56:02 -05:00
geoip.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
hibernate.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
hibernate.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
include.am Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
main.c Add two hidden-service related statistics. 2014-12-19 10:35:25 -05:00
main.h Make can_complete_circuits a static variable. 2014-11-20 12:03:46 -05:00
Makefile.nmake Implement scheduler mechanism to track lists of channels wanting cells or writes; doesn't actually drive the cell flow from it yet 2014-09-30 22:48:24 -07:00
microdesc.c Use digest256map for computing microdescriptor downloads 2014-10-31 11:32:32 -04:00
microdesc.h Use digest256map for computing microdescriptor downloads 2014-10-31 11:32:32 -04:00
networkstatus.c Use digest256_len in networkstatus_copy_old_consensus_info() 2014-10-31 11:36:31 -04:00
networkstatus.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
nodelist.c Make can_complete_circuits a static variable. 2014-11-20 12:03:46 -05:00
nodelist.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
ntmain.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
ntmain.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion_fast.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion_fast.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion_ntor.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion_ntor.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion_tap.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion_tap.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
onion.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
or.h Add two hidden-service related statistics. 2014-12-19 10:35:25 -05:00
policies.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
policies.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
reasons.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
reasons.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
relay.c Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
relay.h Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold' 2014-11-27 22:39:46 -05:00
rendclient.c Remove Support022HiddenServices 2014-11-17 11:52:10 -05:00
rendclient.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
rendcommon.c Add two hidden-service related statistics. 2014-12-19 10:35:25 -05:00
rendcommon.h Merge remote-tracking branch 'public/bug13214_025_squashed' 2014-11-04 00:24:56 -05:00
rendmid.c Add two hidden-service related statistics. 2014-12-19 10:35:25 -05:00
rendmid.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
rendservice.c fix a long line 2014-12-12 08:54:07 -05:00
rendservice.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
rephist.c Add two hidden-service related statistics. 2014-12-19 10:35:25 -05:00
rephist.h Add two hidden-service related statistics. 2014-12-19 10:35:25 -05:00
replaycache.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
replaycache.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
router.c Merge branch 'asn-karsten-task-13192-5-squashed' 2014-12-19 10:35:47 -05:00
router.h Fix 13941: make calling log_new_relay_greeting() optional. 2014-12-11 18:43:51 -07:00
routerlist.c Merge remote-tracking branch 'public/bug13126' 2014-11-26 09:03:30 -05:00
routerlist.h Renaming ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN. 2014-11-11 20:56:40 +02:00
routerparse.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
routerparse.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
routerset.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
routerset.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
scheduler.c Coverity complained that we were not checking this return value 2014-12-22 11:13:11 -05:00
scheduler.h Make queue thresholds and flush size for global scheduler into config options 2014-10-07 09:53:57 -07:00
statefile.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
statefile.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
status.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
status.h Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
tor_main.c Add another year to our copyright dates. 2014-10-28 15:30:16 -04:00
transports.c Fix a bunch of memory leaks in the unit tests. Found with valgrind 2014-12-22 12:27:26 -05:00
transports.h Fix a bunch of memory leaks in the unit tests. Found with valgrind 2014-12-22 12:27:26 -05:00