This day and age, IPv6 support is mandatory for any serious network application.
Using the proper API it even simplifies the address and socket handling.
For inspiration I include the patches I made to the Internet Junkbuster so that is supports IPv6 for clients
and servers alike, which includes allowing IPv4 clients to access IPv6 servers (such as www.netbsd.org,
www.kame.net, server.pasta.cs.uit.no) and the other way around.
A big part of the patch is for ACL configuration file changes, because it handles addresses on a low level.
IPv6 patch for IJB (for inspiration)
Logged In: YES
user_id=41822
I've written a patch that implements the following:
- connecting to ipv6 addresses, given by hostname
- listening to ipv6 address, given by hostname
- clients can connect to both ipv4 and ipv6
Not implemented are:
- connecting to the ipv4 address when name resolution gives
both an IPv4 and an IPv6 address, e.g. when the server we
are connecting to has an IPv6 address, but doesn't listen on
it, or when IPv6 is misconfigured on the proxy
- parsing of IPv6 adress literal in URL's and config files
- removing IPv6 support at run-time
I have NOT tested on any other platform than GNU/Linux,
glibc 2.2. In particular, I assumed that all supported
platforms support getaddrinfo and getnameinfo. Is it the case?
I have NOT checked that it does still compile / work without
the INET6 macro defined (used to activate IPv6 support).
As I cannot figure out how to attach a file here, I'm
sending the patch to the Mailing List.
Logged In: YES
user_id=78811
Wow - are these christmas presents?
Olaf, thanks for sharing your patch! IPv6 is very high on the 3.1 whish list.
Lionel, thanks for adapting it to the current Privoxy codebase!
This will save a lot of work!
Happy,
--Andreas
Logged In: YES
user_id=32619
What is the diff against? I can't seem to find acl.c
anywhere which the patch tries to modify.
Logged In: YES
user_id=32619
Never mind. I read 2.0 and thought 3.0, that explains it ;)
Will look for some ideas here and try adding it to 3.0, but
don't count on it, I don't have much time for that
Logged In: YES
user_id=41822
The diff attached here and called "ijb20-ipv6.patch" is for
the Internet Junkbuster 2.0. I adapted part of it to Privoxy
pre-3.1 CVS, and sent the patch to the "Dev" Mailing List.
The archives seem to have eaten my patch, though... Should
be this message:
https://sourceforge.net/mailarchive/message.php?msg_id=2649175
(and if only someone would explain to me how I can attach a
file to this "patch tracker" here)
IPv6 patch for Privoxy (from schoinobates)
Logged In: YES
user_id=78811
Attaching Lionel's version.
> (and if only someone would explain to me how I can attach a
> file to this "patch tracker" here)
You can only add files to your own items unless you have tracker admin rights.
Logged In: YES
user_id=41822
I've continued development. A new version is available at <a HREF="http://www.mamane.lu/privoxy/privoxy_ipv6_3.patch.gz">my website</a>. (Sent it to the mailing list, too).
Logged In: YES
user_id=41822
A bugfix release of my patch, version 4, is now available on
my website:
http://www.mamane.lu/privoxy/.
The bug fixed is: "When connecting to a host with multiple
addresses, in some cases, on failure to connect on the first
address, the other addresses were not tried."
Logged In: YES
user_id=78811
Attaching Lionel's latest version.
Version 4 of the patch for Privoxy
Logged In: YES
user_id=41822
I have updated my patch to more recent CVS version. I also
prepared a ready-to-compile tarball. Everything is available
from http://www.deepspace6.net/sources.html .
Administrators, feel free to attach updated patch here.
Logged In: YES
user_id=43129
I took the privoxy_ipv6_4.patch.gz patch below and tried to
adapt it to privoxy 3.0.3-2. This compiles and runs with
IPv4 addresses, but I cannot try out with IPv6 cause I don't
have IPv6 access right now :-(
Why the hell, can't I attach another patch to this bug
report? Anyway, I place the patch at
http://www.spinnaker.de/tmp/privoxy_ipv6-3.0.3.patch
Could someone try this out and give me feedback, whether
this works?
Ciao
Roland
Logged In: YES
user_id=43129
Just noticed, that on
http://www.deepspace6.net/sections/sources.html a newer
version (5) of this patch exists. I adapted
http://www.spinnaker.de/tmp/privoxy_ipv6-3.0.3.patch to this
version now. If you already downloaded my patch, please get
a new version now (sorry for inconvenience).
Logged In: YES
user_id=249980
roro - thanks for the update. Can you do me a favor - check
out HEAD and see if it applies there?
Logged In: YES
user_id=43129
Yes, my patch applies without rejects to HEAD and the
resulting code compiles without errors.
Logged In: YES
user_id=43129
I just uploaded another update of http://www.spinnaker.de/tmp/privoxy_ipv6-3.0.3.patch which adds some "break" statements to loadcfg.c, jbsockets.c and jcc.c.
Without this patch all permit-access and deny-access directives in the config file throw error messages, because they run in the default tree of the switch statement, which throws the error message.
This was already broken in the old 3.1 version of the IPv6 patch.
Logged In: YES
user_id=249980
Changed to developer to-do.
Logged In: YES
user_id=249980
See:
https://sourceforge.net/tracker/index.php?func=detail&aid=1533125&group_id=11118&atid=400339
Logged In: YES
user_id=400731
i updated the patch to the latest cvs
http://caravela.homelinux.net/~higuita/extra/privoxy_ipv6-3.0.4.patch
it seen to work with my system, but i'm no programmer, i
just tried to fix the rejections... i hope without breaking
anything.