
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?
|