]> git.ipfire.org Git - thirdparty/tor.git/commit
Use the appropriate call to getsockopt for IPv6 sockets
authorFrancisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
Tue, 23 Dec 2014 15:51:33 +0000 (10:51 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 23 Dec 2014 15:51:33 +0000 (10:51 -0500)
commit39e71d8fa54afd906fdcaf2cd496c300362ebb9a
tree1b4ed9fff0c400eebd5d01f2d42cd022e34e3bea
parent808e2b856bd77fa9b431272a6f37596655fd5945
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>
configure.ac
src/or/connection_edge.c