Displaying 20 results from an estimated 116 matches for "getservbyname".
2010 Mar 24
11
[Bug 1742] New: sshconnect should use port returned by getaddrinfo
...attachment (id=1820)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1820)
use getaddrinfo for sshd port lookup
Ssh, in ssh_connect(), calls getaddrinfo() to get the the server
endpoint address. Getaddrinfo returns a port number but this is
ignored. Ssh instead makes an unnecessary call to getservbyname() to
get the port number. In most cases this makes no difference, but this
makes it impossible to use DNS SRV records to find ssh services.
The attached patch eliminates the call to getservbyname and instead
uses the port returned by getaddrinfo.
--
Configure bugmail: https://bugzilla.mindrot.or...
2004 Mar 23
2
A question on Compilation errors...
...#39;
/openssh-3.8p1/readconf.c(727): undefined reference to `strcasecmp'
sshconnect.o: In function `timeout_connect':
/openssh-3.8p1/sshconnect.c(243): undefined reference to `howmany'
sshconnect.o: In function `ssh_connect':
/openssh-3.8p1/sshconnect.c(330): undefined reference to
`getservbyname'
sshconnect.o: In function `confirm':
/openssh-3.8p1/sshconnect.c(545): undefined reference to `strncasecmp'
/openssh-3.8p1/sshconnect.c(549): undefined reference to `strncasecmp'
./libssh.a(log.o): In function `log_facility_number':
/openssh-3.8p1/log.c(101): undefined referenc...
2005 Jun 12
2
%h,%p,%u expansion for ControlPath
...ns.user)?
--- openssh-4.1p1/ssh.c~ 2005-06-12 09:47:18.000000000 +0100
+++ openssh-4.1p1/ssh.c 2005-06-12 09:40:53.000000000 +0100
@@ -604,6 +604,17 @@ again:
*p = tolower(*p);
}
+ /* Get default port if port has not been set. */
+ if (options.port == 0) {
+ struct servent *sp;
+
+ sp = getservbyname(SSH_SERVICE_NAME, "tcp");
+ if (sp)
+ options.port = ntohs(sp->s_port);
+ else
+ options.port = SSH_DEFAULT_PORT;
+ }
+
if (options.proxy_command != NULL &&
strcmp(options.proxy_command, "none") == 0)
options.proxy_command = NULL;
@@ -611,6 +622,42 @@...
2009 May 04
2
FW: Oracle 9204 installation on linux x86-64 on ocfs
...tid = main:182895169120 file = unixinc.c, line = 1077 {Mon May 4 05:34:38 2009 }
>TRACE: InitNMInfo: setting clientTimeout to 143s based on MissCount 215 and PollInterval 1000ms, tid = main:182895169120 file = nmconfig.c, line = 138 {Mon May 4 05:34:38 2009 }
>TRACE: InitClusterDb(): getservbyname on CMSrvr failed - 0 : assigning 9998, tid = main:182895169120 file = nmconfig.c, line = 208 {Mon May 4 05:34:38 2009 }
OemNodeConfig(): Network Address of node0: 1.1.1.1 (port 9998)
{Mon May 4 05:34:38 2009 }
OemNodeConfig(): Network Address of node1: 1.1.1.2 (port 9998)
{Mon May 4 05:34:38 2...
2024 Apr 29
1
RFE to extend "LISTEN" directive to support host-colon-port (as single token)
...uld the port part be constrained to
> numbers, or should it also pass through the naming database (resolve via
> typically /etc/services on POSIX systems) if it is a non-numeric string,
> similar to how we resolve host names into IP address numbers?
sure, non-numeric port could go through getservbyname(3) and then fail
if not the expected protocol. Don't talk about /etc/services but the
posix interface, except it's from 4.2BSD and I'm not sure it's been
specified by POSIX :-)
On the other hand, if you are using an alternate port, it's because you
are not doing the normal thi...
2024 Apr 29
1
RFE to extend "LISTEN" directive to support host-colon-port (as single token)
...uld the port part be constrained to
> numbers, or should it also pass through the naming database (resolve via
> typically /etc/services on POSIX systems) if it is a non-numeric string,
> similar to how we resolve host names into IP address numbers?
sure, non-numeric port could go through getservbyname(3) and then fail
if not the expected protocol. Don't talk about /etc/services but the
posix interface, except it's from 4.2BSD and I'm not sure it's been
specified by POSIX :-)
On the other hand, if you are using an alternate port, it's because you
are not doing the normal thi...
2016 Feb 26
2
[Bug 2544] New: Port names are not supported!
https://bugzilla.mindrot.org/show_bug.cgi?id=2544
Bug ID: 2544
Summary: Port names are not supported!
Product: Portable OpenSSH
Version: 6.9p1
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
2009 Oct 14
0
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. Bu...
2013 Jul 25
2
[Bug 1742] sshconnect should use port returned by getaddrinfo
...ment #13 from Damien Miller <djm at mindrot.org> ---
Thinking about this a little more, this patch would break hosts where
"ssh" isn't in /etc/services. There are probably a few of these out
there, since people like to run OpenSSH on all sorts of old things.
How about we do the getservbyname lookup but only set port (to 22) if
it fails? This would preserve the current working behaviour but let SRV
records work too.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
2003 Oct 30
0
[PATCH] contrib/cygwin/ssh-host-config: Fix a CRLF/LF issue
...ht of some major changes in the
Cygwin DLL.
The result is, that on recent Cygwin releases (with "recent" probably
around a year or so), the script fails under specific conditions to create
CRLF line endings, just adding these entries with LFs.
Funny enough, the related Winsock functions getservbyname and getservbyport
have no problems to read these entries on all versions of Windows... except
on the good old Windows 95, which tends to SEGV when trying to read these
entries. Oh boy...
Anyway, the below patch to ssh-host-config accomplishes CRLFs again under
all conditions.
Thanks in advance,...
2024 Apr 29
1
RFE to extend "LISTEN" directive to support host-colon-port (as single token)
Cheers all,
A recent discussion in the issue tracker brought up the idea to allow the
`LISTEN` keyword to also accept a single "host:port" token (e.g. if there
is only one argument, with at least one colon, and the last colon is
followed only by numbers, split it into host and port) :
https://github.com/networkupstools/nut/issues/2424
I see certain pros to the idea (may be more
2024 Apr 29
1
RFE to extend "LISTEN" directive to support host-colon-port (as single token)
Cheers all,
A recent discussion in the issue tracker brought up the idea to allow the
`LISTEN` keyword to also accept a single "host:port" token (e.g. if there
is only one argument, with at least one colon, and the last colon is
followed only by numbers, split it into host and port) :
https://github.com/networkupstools/nut/issues/2424
I see certain pros to the idea (may be more
2018 Oct 19
0
Announce: OpenSSH 7.9 released
...he certificate
fingerprint (previously it included only key ID and CA key
fingerprint).
Changes since OpenSSH 7.8
=========================
This is primarily a bugfix release.
New Features
------------
* ssh(1), sshd(8): allow most port numbers to be specified using
service names from getservbyname(3) (typically /etc/services).
* ssh(1): allow the IdentityAgent configuration directive to accept
environment variable names. This supports the use of multiple
agent sockets without needing to use fixed paths.
* sshd(8): support signalling sessions via the SSH protocol.
A limited subse...
2009 Mar 30
1
Crash in 1.1.18-6.1
...opt/lib32/lib/libc.so.6(__nss_lookup_function+0x2a1)[0xf7ddcc41]
/opt/lib32/lib/libc.so.6[0xf7ddccac]
/opt/lib32/lib/libc.so.6(__nss_services_lookup2+0x4d)[0xf7dde75d]
/opt/lib32/lib/libc.so.6(getservbyname_r+0x1d6)[0xf7de5586]
/opt/lib32/lib/libc.so.6(getservbyname+0x7e)[0xf7de52de]
/opt/lib32/usr/lib/libcups.so.2(ippPort+0xa6)[0x7df6fc66]
/opt/lib32/usr/lib/libcups.so.2(cupsGetDests+0x26)[0x7df62ce6]...
1998 Nov 24
1
Missing inet.h and netdb.h for SCO
I tried to compile Samba 2.0 beta with cc under SCO 3.2. I seem to be
missing the inet.h and netdb.h include files. Does anyone know if they are
publicly available?
Steve Grose
Sgrose@cmps.com
Continental Managed Pharmacy Services - www.preferrx.com
Voice - 216-459-2025 Ext. 208
Fax - 216-485-8615
Any opinions expressed are my own and not necessarily those of my employers.
2018 Dec 02
0
Sieve broken after upgrade
...you kindly help me get this right? Configs are
attached.
Thanks in advance, Pavel
-------------- next part --------------
root at vao01:/var/www/roundcube/plugins/managesieve# cat config.inc.php
<?php
// managesieve server port. When empty the port will be determined automatically
// using getservbyname() function, with 4190 as a fallback.
$config['managesieve_port'] = null;
// managesieve server address, default is localhost.
// Replacement variables supported in host name:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostn...
2014 May 29
3
Re: libguestfs error
...drinfo is declared without a macro... yes
checking whether gai_strerror is declared without a macro... yes
checking whether getnameinfo is declared without a macro... yes
checking for library containing gethostbyname... none required
checking for gethostbyname... yes
checking for library containing getservbyname... none required
checking for getservbyname... yes
checking for C/C++ restrict keyword... __restrict
checking for library containing inet_ntop... none required
checking whether inet_ntop is declared... yes
checking for IPv4 sockets... yes
checking for IPv6 sockets... yes
checking whether getcwd (NU...
2024 Apr 29
3
RFE to extend "LISTEN" directive to support host-colon-port (as single token)
...strained to
> > numbers, or should it also pass through the naming database (resolve via
> > typically /etc/services on POSIX systems) if it is a non-numeric string,
> > similar to how we resolve host names into IP address numbers?
>
> sure, non-numeric port could go through getservbyname(3) and then fail
> if not the expected protocol. Don't talk about /etc/services but the
> posix interface, except it's from 4.2BSD and I'm not sure it's been
> specified by POSIX :-)
>
> On the other hand, if you are using an alternate port, it's because you
>...
2024 Apr 29
3
RFE to extend "LISTEN" directive to support host-colon-port (as single token)
...strained to
> > numbers, or should it also pass through the naming database (resolve via
> > typically /etc/services on POSIX systems) if it is a non-numeric string,
> > similar to how we resolve host names into IP address numbers?
>
> sure, non-numeric port could go through getservbyname(3) and then fail
> if not the expected protocol. Don't talk about /etc/services but the
> posix interface, except it's from 4.2BSD and I'm not sure it's been
> specified by POSIX :-)
>
> On the other hand, if you are using an alternate port, it's because you
>...
2008 Jan 03
7
error message after upgrading ruby
hi
first off all a happy new year to you all.
I''m using netbeans 6 and ruby 2.02.
at this point I get my index page in my view in this format
index.html.erb and not like before index.rhtml
when I enter localhost:3000/lijsten/index I get the following error
message
Errno::EBADF in LijstenController#index
Bad file descriptor - connect(2)
RAILS_ROOT: