[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sks-devel] port in diff- files
From: |
Peter Palfrader |
Subject: |
Re: [Sks-devel] port in diff- files |
Date: |
Fri, 14 Jan 2005 13:28:25 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
On Wed, 12 Jan 2005, Yaron Minsky wrote:
> > address@hidden:~/tmp/sks-1.0.9$ grep -r diff- .
> > ./reconserver.ml: log_diffs (sprintf "diff-%s.txt" (sockaddr_to_name
> > http_addr)) hashes;
> > ./reconserver.ml: log_diffs (sprintf "diff-%s.txt" (sockaddr_to_name
> > http_addr)) hashes;
> >
> > let sockaddr_to_name sockaddr = match sockaddr with
> > Unix.ADDR_UNIX s -> sprintf "UNIX_%s" s
> > | Unix.ADDR_INET (addr,p) -> sprintf "%s_%d" (Unix.string_of_inet_addr
> > addr) p
>
> So, that does look like it's doing the right thing. In particular,
> it's using the http address (including the HTTP port) rather than the
> port of the socket it connected on. That should make the port numbers
> remain useful, no?
If server 1.2.3.4 in his role as recon client connects from his port
1234 to my port 11370, then it will create 1.2.3.4_1234.
Since the local port (1234 in this case) is more or less random you get
those scores of files.
--
PGP signed and encrypted | .''`. ** Debian GNU/Linux **
messages preferred. | : :' : The universal
| `. `' Operating System
http://www.palfrader.org/ | `- http://www.debian.org/