You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dirk Schenkewitz <sc...@docomolab-euro.com> on 2005/03/02 00:02:18 UTC

Re: svnserve and IPv6 ?

Dirk Schenkewitz wrote:
>  ...
> is it somehow possible to access svnserve using IPv6 adresses?
> If yes, what do I need to do?

Since there was no answer until now, I thought I report what I
found by searching the internet for about one day altogether
(yesterday and today):

Nobody seems to do this.

There are some hints about accessing subversion using IPv6 adresses,
but all who do this (at least all I found up to now, there are not
very much) use apache or ssh.

Then I did 'find subversion-1.1.3 -type f | xargs grep -i "ipv6"'
and found that "IPv6" appeared under "neon", "apr" and "apr-util",
but nowhere else. I'm not perfectly sure, but I believe that these
are not used by svnserve.

Can somebody who knows confirm that svnserve does not understand
about IPv6 adresses?

If that's the case, we cannot use it, because IPv6 will be essential
in our case. This would be enough to force me to not using svnserve
and my other question about chrooting svnserve would be pointless.

Have fun
   Dirk



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

[PATCH]: Add ipv6 listen support to svnserve

Posted by Daniel Berlin <db...@dberlin.org>.
This patch adds the ability for svnserve to listen on ipv6 addresses.

You have to use --listen-host "::1" or something similar.

I added an svncheck6 to the makefile to test this.

All tests are passing so far :), i'll see the final results when i get
back from lunch.


[PATCH]: Add some ipv6 support to libsvn_ra_client

Posted by Daniel Berlin <db...@dberlin.org>.
On Wed, 2005-03-02 at 00:09 -0500, Daniel Berlin wrote:
> 	
> > I did not mention it but I tried, with the following commands, on the
> > subversion server pc itself, which has the IPv4 address 10.1.1.222:
> > 'svn co svn://10.1.1.222/test test.1' works.
> > 'svn co svn://127.0.0.1/test test.2' also works.
> > This shows that svnserve is not restricted to a specific address.
> > 
> > 'svn co svn://::1/test test.3' gives me
> > "svn: Illegal svn repository URL 'svn://::1/test'".
> > 
> > 'svn co svn://[::1]/test test.4' gives me
> > "svn: Illegal svn repository URL 'svn://[::1]/test'".
> 
> 

The attached patch should fix the parsing and connecting portion of it.
Note that svnserve doesn't know how to listen on ipv6, so this isn't
going to actually solve your problem entirely. :)


I'm working on the svnserve portion, i'll post that next.
You will have to specify --listen-host "::1" or something to svnserve to
get it to listen on ipv6

This is against 1.2
I'll commit it once i get the server portion working and tested.

Re: svnserve and IPv6 ?

Posted by Daniel Berlin <db...@dberlin.org>.
	
> I did not mention it but I tried, with the following commands, on the
> subversion server pc itself, which has the IPv4 address 10.1.1.222:
> 'svn co svn://10.1.1.222/test test.1' works.
> 'svn co svn://127.0.0.1/test test.2' also works.
> This shows that svnserve is not restricted to a specific address.
> 
> 'svn co svn://::1/test test.3' gives me
> "svn: Illegal svn repository URL 'svn://::1/test'".
> 
> 'svn co svn://[::1]/test test.4' gives me
> "svn: Illegal svn repository URL 'svn://[::1]/test'".


This is a problem in the svn url parsing code  in
libsvn_ra_svn/client.c: parse_url
It gets mad because it already saw a : in the url, and doesn't want to
see another one.

Is there some good reason we don't use apr_uri_parse from apr-util here?
I see brane previously objected to it's handling of file:// urls, which
doesn't apply in libsvn_ra_svn.

I also know it parses ipv6 addresses because i see
http://lwn.net/Articles/102318


If we could use that instead of the parse_url, it would probably make
life easier here (we should still be able to parse out the tunnel spec
properly).
--Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve and IPv6 ?

Posted by Steve Greenland <st...@lsli.com>.
On Wed, Mar 02, 2005 at 02:53:20AM +0100, Dirk Schenkewitz wrote:
> 
> And just to prove that the system knows about IPv6, I just did:
> 'dig localhost' - answer is "127.0.0.1". And then 'dig localhost aaaa'
> - this forces answering with an IPv6 address, if one is available -
> the answer is "::1"

That doesn't prove your system understands IP6. That just demonstrates
that your DNS server has an AAAA record for 'localhost'. If you're
running Linux, 'ifconfig -a' should show IP6 interfaces, if any exist;
don't know about other Unices offhand.

(Not that I think this is actually relevant to your subversion issue...)

Steve

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve and IPv6 ?

Posted by Daniel Berlin <db...@dberlin.org>.
	
> I did not mention it but I tried, with the following commands, on the
> subversion server pc itself, which has the IPv4 address 10.1.1.222:
> 'svn co svn://10.1.1.222/test test.1' works.
> 'svn co svn://127.0.0.1/test test.2' also works.
> This shows that svnserve is not restricted to a specific address.
> 
> 'svn co svn://::1/test test.3' gives me
> "svn: Illegal svn repository URL 'svn://::1/test'".
> 
> 'svn co svn://[::1]/test test.4' gives me
> "svn: Illegal svn repository URL 'svn://[::1]/test'".


This is a problem in the svn url parsing code  in
libsvn_ra_svn/client.c: parse_url
It gets mad because it already saw a : in the url, and doesn't want to
see another one.

Is there some good reason we don't use apr_uri_parse from apr-util here?
I see brane previously objected to it's handling of file:// urls, which
doesn't apply in libsvn_ra_svn.

I also know it parses ipv6 addresses because i see
http://lwn.net/Articles/102318


If we could use that instead of the parse_url, it would probably make
life easier here (we should still be able to parse out the tunnel spec
properly).
--Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svnserve and IPv6 ?

Posted by Dirk Schenkewitz <sc...@docomolab-euro.com>.
Travis P wrote:
> 
> On Mar 1, 2005, at 6:02 PM, Dirk Schenkewitz wrote:
> 
>> Dirk Schenkewitz wrote:
>>
>>>  ...
>>> is it somehow possible to access svnserve using IPv6 adresses?
>>> If yes, what do I need to do?
>>
>>
>> Then I did 'find subversion-1.1.3 -type f | xargs grep -i "ipv6"'
>> and found that "IPv6" appeared under "neon", "apr" and "apr-util",
>> but nowhere else. I'm not perfectly sure, but I believe that these
>> are not used by svnserve.
>>
>> Can somebody who knows confirm that svnserve does not understand
>> about IPv6 adresses?
> 
> I'm afraid I'm not someone who "knows" and can give any authoritative 
> answers.  Just some thoughts:
> 
> Subversion programs use apr heavily to achieve platform portability.
> If apr and your OS support IPv6, I'd guess it might just work.  
> You could perhaps give it a try. 
> (Wouldn't it be great if you were trying to solve a problem you don't
> actually have? :-)

Yes, it would. :-) But it's not that simple...

> -Travis
> 
> p.s. I beg parson if your first message did mention that you'd tried 
> it.  I don't have that message anymore.

I did not mention it but I tried, with the following commands, on the
subversion server pc itself, which has the IPv4 address 10.1.1.222:
'svn co svn://10.1.1.222/test test.1' works.
'svn co svn://127.0.0.1/test test.2' also works.
This shows that svnserve is not restricted to a specific address.

'svn co svn://::1/test test.3' gives me
"svn: Illegal svn repository URL 'svn://::1/test'".

'svn co svn://[::1]/test test.4' gives me
"svn: Illegal svn repository URL 'svn://[::1]/test'".

The brackets "[]" are sometimes used to bracket IPv6 addresses when
the application may choke on too many colons in the wrong place. But
here they apparently don't help.

"::1" is the IPv6 address of "localhost", which is hardcoded (so to
say) in the /etc/hosts of the subversion server pc, just like
"127.0.0.1" is.

Now, I can imagine that it might be neccessary to run another instance
of svnserve, perhaps with specific parameters. But there I'm at the
end of my guessing.

And just to prove that the system knows about IPv6, I just did:
'dig localhost' - answer is "127.0.0.1". And then 'dig localhost aaaa'
- this forces answering with an IPv6 address, if one is available -
the answer is "::1"

Thank you anyway :-)
Have fun
   Dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve and IPv6 ?

Posted by Travis P <sv...@castle.fastmail.fm>.
On Mar 1, 2005, at 6:02 PM, Dirk Schenkewitz wrote:

> Dirk Schenkewitz wrote:
>>  ...
>> is it somehow possible to access svnserve using IPv6 adresses?
>> If yes, what do I need to do?
>
> Then I did 'find subversion-1.1.3 -type f | xargs grep -i "ipv6"'
> and found that "IPv6" appeared under "neon", "apr" and "apr-util",
> but nowhere else. I'm not perfectly sure, but I believe that these
> are not used by svnserve.
>
> Can somebody who knows confirm that svnserve does not understand
> about IPv6 adresses?

I'm afraid I'm not someone who "knows" and can give any authoritative 
answers.  Just some thoughts:

Subversion programs use apr heavily to achieve platform portability.  
If apr and your OS support IPv6, I'd guess it might just work.  You 
could perhaps give it a try.  (Wouldn't it be great if you were trying 
to solve a problem you don't actually have? :-)

-Travis

p.s. I beg parson if your first message did mention that you'd tried 
it.  I don't have that message anymore.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org