Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

getaddrinfo() and SRV records

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


rees at umich

Oct 14, 2009, 10:30 AM

Post #1 of 1 (555 views)
Permalink
getaddrinfo() and SRV records

Ssh calls getaddrinfo() to get the server address when it makes a
connection, but ignores the port, which I think is bad. Instead it calls
getservbyname(), which is redundant, as getaddrinfo() normally does that for
you.

Among other things, this makes it impossible to use SRV records (rfc2782) on
the server end to point the client at a different port.

Yes, I know that getaddrinfo() does not use SRV records in the default linux
implementation. But that's no reason to ignore the port.

I have attached a patch for your consideration. I am not advocating that
this be committed as-is, just submitting it for discussion. Does this seem
like a good idea? Bad idea? Good idea poorly implemented?
Attachments: openssh-5.3p1-getaddrinfo.patch (2.22 KB)

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.