Skip to content
Snippets Groups Projects
Commit 39e71d8f authored by Francisco Blas Izquierdo Riera (klondike)'s avatar Francisco Blas Izquierdo Riera (klondike) Committed by Nick Mathewson
Browse files

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: default avatarFrancisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
parent 808e2b85
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment