search for: ni_namereqd

Displaying 13 results from an estimated 13 matches for "ni_namereqd".

2004 Mar 22
18
[Bug 748] HP-UX 11.11 (aka 11i) needs BROKEN_GETADDRINFO
http://bugzilla.mindrot.org/show_bug.cgi?id=748 dtucker at zip.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |japs at adm.ku.dk ------- Additional Comments From dtucker at zip.com.au 2004-03-22 22:46 ------- *** Bug 816 has been marked as a
2003 Feb 27
1
Unwanted reverse mapping of ip addresses
...etermined. I am using Solaris 8 with ssh 3.4p1, and this piece of code: debug3("Trying to reverse map address %.100s.", ntop); /* Map the IP address to a host name. */ if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), NULL, 0, NI_NAMEREQD) != 0) { /* Host name not found. Use ip address. */ log("Could not reverse map address %.100s.", ntop); return xstrdup(ntop); takes like 30 to 60 seconds to run if you have dns listed in your nsswitch.conf, which in many cases is needed....
2003 Dec 09
1
Make Fails on Cobalt Qube 2
...declaration of function `getnameinfo' clientname.c:73: `NI_NUMERICHOST' undeclared (first use this function) clientname.c:73: (Each undeclared identifier is reported only once clientname.c:73: for each function it appears in.) clientname.c: In function `lookup_name': clientname.c:229: `NI_NAMEREQD' undeclared (first use this function) clientname.c:229: `NI_NUMERICSERV' undeclared (first use this function) clientname.c:234: warning: implicit declaration of function `gai_strerror' clientname.c:234: warning: format argument is not a pointer (arg 4) clientname.c: In function `check_n...
2000 Dec 27
2
patch to support hurd-i386
.../* Get IP address of client. */ @@ -71,10 +72,21 @@ fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); /* Map the IP address to a host name. */ - if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), - NULL, 0, NI_NAMEREQD) == 0) { + name_size = 100; + name = malloc(name_size); + if (name == NULL) + fatal("get_remote_hostname: not enough space for hostname"); + while ((i = getnameinfo((struct sockaddr *)&from, fromlen, name, + name_size...
2000 Jan 16
1
Report on openssh-1.2.1pre26.tar.gz
...-------------- --- fake-getaddrinfo.h-dist Sun Jan 16 14:26:15 2000 +++ fake-getaddrinfo.h Sun Jan 16 14:28:40 2000 @@ -9,6 +9,10 @@ # define AI_PASSIVE 1 #endif +#ifndef AI_CANONNAME +# define AI_CANONNAME 2 +#endif + #ifndef NI_NUMERICHOST # define NI_NUMERICHOST 2 # define NI_NAMEREQD 4 @@ -25,7 +29,7 @@ char *ai_canonname; /* canonical name for hostname */ struct sockaddr *ai_addr; /* binary address */ struct addrinfo *ai_next; /* next structure in linked list */ -} +}; #endif /* !HAVE_STRUCT_ADDRINFO */ #ifndef HAVE_GETADDRINFO
2001 Oct 13
0
local IP in environment
...SH_CLIENT). The variable is called SSH_LOCAL. -Eric -------------- next part -------------- *** openssh-2.9.9p2/canohost.c.bak Sun Jun 24 22:01:24 2001 --- openssh-2.9.9p2/canohost.c Fri Oct 12 16:52:09 2001 *************** *** 255,260 **** --- 255,281 ---- return get_socket_address(socket, 0, NI_NAMEREQD); } + const char * + get_local_ipaddr2(void) + { + static char *canonical_host_ip = NULL; + + /* Check whether we have cached the ipaddr. */ + if (canonical_host_ip == NULL) { + if (packet_connection_is_on_socket()) { + canonical_host_ip = + get_local_ipaddr(packet_get_connecti...
2002 Apr 08
1
compilation fails on Cobalt RaQ2
...declaration of function `getnameinfo' clientname.c:56: `NI_NUMERICHOST' undeclared (first use this function) clientname.c:56: (Each undeclared identifier is reported only once clientname.c:56: for each function it appears in.) clientname.c: In function `lookup_name': clientname.c:164: `NI_NAMEREQD' undeclared (first use this function) clientname.c:164: `NI_NUMERICSERV' undeclared (first use this function) clientname.c:169: warning: implicit declaration of function `gai_strerror' clientname.c:169: warning: format argument is not a pointer (arg 4) clientname.c: In function `check_n...
2003 Jul 24
0
make fails all versions > 2.4.8 on older linux machine (clientname.o)
...declaration of function `getnameinfo' clientname.c:73: `NI_NUMERICHOST' undeclared (first use this function) clientname.c:73: (Each undeclared identifier is reported only once clientname.c:73: for each function it appears in.) clientname.c: In function `lookup_name': clientname.c:229: `NI_NAMEREQD' undeclared (first use this function) clientname.c:229: `NI_NUMERICSERV' undeclared (first use this function) clientname.c:234: warning: implicit declaration of function `gai_strerror' clientname.c:234: warning: format argument is not a pointer (arg 4) clientname.c: In function `check_n...
2008 Oct 24
0
Name lookup failures and CIDR regression under cygwin ( patch attached )
...e lookup failed for X.X.X.X: Unknown server error Looking at the code it seems the call will never succeed? /* reverse lookup */ name_err = getnameinfo((struct sockaddr *) ss, ss_len, name_buf, name_buf_size, port_buf, port_buf_size, NI_NAMEREQD | NI_NUMERICSERV); if (name_err != 0) { strlcpy(name_buf, default_name, name_buf_size); rprintf(FLOG, "name lookup failed for %s: %s\n", client_addr(fd), gai_strerror(name_err)); return name_err; } Then in the supplied getnameinfo:- /* We d...
2002 May 20
0
Openssh 3.2.2p1 KRB5 addition
...nameinfo NI_NUMERICHOST failed"); + + debug3("Trying to resolve local address %.100s to hostname", ntop); + /* Map the IP address to a host name. */ + if (getnameinfo((struct sockaddr *)&addr_6or4, addr_6or4_len, name, sizeof(name), + NULL, 0, NI_NAMEREQD) != 0) { + /* Host name not found. Use ip address. */ + log("Could not resolve local address %.100s to hostname", ntop); + return xstrdup(ntop); + } + + /* Got host name. */ + name[sizeof(name) - 1] = '\0';...
2008 Oct 24
5
DO NOT REPLY [Bug 5851] New: Name lookup failures and CIDR regression
...e lookup failed for X.X.X.X: Unknown server error Looking at the code it seems the call will never succeed? /* reverse lookup */ name_err = getnameinfo((struct sockaddr *) ss, ss_len, name_buf, name_buf_size, port_buf, port_buf_size, NI_NAMEREQD | NI_NUMERICSERV); if (name_err != 0) { strlcpy(name_buf, default_name, name_buf_size); rprintf(FLOG, "name lookup failed for %s: %s\n", client_addr(fd), gai_strerror(name_err)); return name_err; } Then in the supplied getnameinfo:- /* We d...
2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
...ame_buf_len, char *port_buf, size_t port_buf_len) { int name_err; /* reverse lookup */ - name_err = getnameinfo((struct sockaddr *) ss, ss_len, + name_err = getnameinfo((struct sockaddr *) ss, ss->ss_len, name_buf, name_buf_len, port_buf, port_buf_len, NI_NAMEREQD | NI_NUMERICSERV);
2003 Apr 26
10
[Bug 549] Login Delay / Remove unwanted reverse map check
...;host reverse map. Further investigation reveals the code in canohost.c: debug3("Trying to reverse map address %.100s.", ntop); /* Map the IP address to a host name. */ if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), NULL, 0, NI_NAMEREQD) != 0) { /* Host name not found. Use ip address. */ #if 0 log("Could not reverse map address %.100s.", ntop); #endif return xstrdup(ntop); } If the reverse lookup fails, it resorts to the IP address. Ideally, a person could configu...