search for: ni_numerichost

Displaying 20 results from an estimated 26 matches for "ni_numerichost".

Did you mean: ai_numerichost
2002 Sep 21
4
OpenSSH -current fails regression on Solaris 8, sshd dumps core
...============================================================== RCS file: /cvs/openssh/canohost.c,v retrieving revision 1.30 diff -u -r1.30 canohost.c --- canohost.c 11 Jul 2002 03:56:47 -0000 1.30 +++ canohost.c 21 Sep 2002 14:28:42 -0000 @@ -246,10 +246,29 @@ return get_socket_address(socket, 1, NI_NUMERICHOST); } -char * -get_local_ipaddr(int socket) +/* + * Returns the IP-address of the local host as a string. The returned + * string must not be freed. + */ + +const char * +get_local_ipaddr(void) { - return get_socket_address(socket, 0, NI_NUMERICHOST); + static char *canonical_host_ip = NULL; + +...
2011 Aug 05
4
[Bug 8355] New: Use pointer after freeaddrinfo()
https://bugzilla.samba.org/show_bug.cgi?id=8355 Summary: Use pointer after freeaddrinfo() Product: rsync Version: 3.0.8 Platform: All OS/Version: All Status: NEW Severity: critical Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: andrey at zonov.org
2000 Mar 07
2
patch for openssh-1.2.2p1
...ddr_in *)&from)->sin_family = AF_INET; + memcpy(&((struct sockaddr_in *)&from)->sin_addr, &addr, sizeof(addr)); + ((struct sockaddr_in *)&from)->sin_port = port; + } +#endif + if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), NULL, 0, NI_NUMERICHOST) != 0) fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); diff -ru openssh-1.2.2p1/channels.c openssh-1.2.2p1-20000308/channels.c --- openssh-1.2.2p1/channels.c Fri Mar 3 20:35:33 2000 +++ openssh-1.2.2p1-20000308/channels.c Wed Mar 8 00:25:18 2000 @@ -1215,8 +1215,12 @...
2008 Oct 24
0
Name lookup failures and CIDR regression under cygwin ( patch attached )
...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 don't support those. */ if ((node && !(flags & NI_NUMERICHOST)) || (service && !(flags & NI_NUMERICSERV))) return EAI_FAIL; if (node) { return gethostnameinfo(sa, node, nodelen, flags); } if (service) { return getservicenameinfo(sa, service, servicelen, flags); } return 0; There seems to be th...
2008 Oct 24
5
DO NOT REPLY [Bug 5851] New: Name lookup failures and CIDR regression
...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 don't support those. */ if ((node && !(flags & NI_NUMERICHOST)) || (service && !(flags & NI_NUMERICSERV))) return EAI_FAIL; if (node) { return gethostnameinfo(sa, node, nodelen, flags); } if (service) { return getservicenameinfo(sa, service, servicelen, flags); } return 0; There seems to be th...
2000 Jan 16
1
Report on openssh-1.2.1pre26.tar.gz
...-ks.ne.jp/pgp-public-key.html -------------- next part -------------- --- 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 */ #ifnde...
2008 Aug 21
2
IP options
I'm seeing something similar to bug 1179 (https://bugzilla.mindrot.org/show_bug.cgi?id=1179), even with the reordered IP options check. For some reason, getsockopt is returning an IP options of length 2, value 00 00. Would Mark Weindling's original patch (https://bugzilla.mindrot.org/attachment.cgi?id=1105) break anything if I incorporated it? Platform: HP NonStop S7000 series
2001 Jan 22
0
Patches for failing build & bus error on SPARC/Linux
..._ESTABLISH + # define PAM_NEW_AUTHTOK_REQD PAM_AUTHTOKEN_REQD #else # define PAM_STRERROR(a,b) pam_strerror((a),(b)) #endif *** fake-getnameinfo.c.orig Fri Sep 29 00:59:14 2000 --- fake-getnameinfo.c Mon Jan 22 16:19:39 2001 *************** *** 30,39 **** if (host) { if (flags & NI_NUMERICHOST) { ! if (strlen(inet_ntoa(sin->sin_addr)) >= hostlen) return EAI_MEMORY; ! strcpy(host, inet_ntoa(sin->sin_addr)); return 0; } else { hp = gethostbyaddr((char *)&sin->sin_addr, --- 30,43 ---- if (host) { if (flags & NI_NUMERICHOST) { !...
2003 Dec 09
1
Make Fails on Cobalt Qube 2
...s a Cobalt OS with is supposedly a RedHat Linux 4.2 variant. I can not compile the new rsync version 2.5.7 as I always fail my make with the following error: clientname.c: In function `client_addr': clientname.c:72: warning: implicit 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...
2002 May 20
0
Openssh 3.2.2p1 KRB5 addition
...addr4->sin_port = port; + } + } + #endif + if (addr_6or4.ss_family == AF_INET) + check_ip_options(socket, ntop); + + if (getnameinfo((struct sockaddr *)&addr_6or4, addr_6or4_len, ntop, sizeof(ntop), + NULL, 0, NI_NUMERICHOST) != 0) + fatal("get_local_hostname: getnameinfo 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_6or...
2002 Dec 13
1
Help compiling tinc in Solaris 2.6
...stem directory fake-getnameinfo.c: In function `getnameinfo': fake-getnameinfo.c:38: `EAI_MEMORY' undeclared (first use in this function) fake-getnameinfo.c:38: (Each undeclared identifier is reported only once fake-getnameinfo.c:38: for each function it appears in.) fake-getnameinfo.c:44: `NI_NUMERICHOST' undeclared (first use in this function) fake-getnameinfo.c:54: `EAI_NODATA' undeclared (first use in this function) make[2]: *** [fake-getnameinfo.o] Error 1 make[2]: Leaving directory `/home/raub/todo/tinc-1.0pre8/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/...
2002 Jan 11
1
rsync 2.5.1 server - strange logs
I've just upgraded my rsync server to 2.5.1 (before, I was using 2.4.6), without changing anything in /etc/rsyncd.conf, and now, I have this logs each time a client connect to server: 2002/01/07 18:33:03 [10432] rsync: reverse name lookup mismatch on fd3 - spoofed address? 2002/01/07 18:33:03 [10432] rsync on admin/sbin/padmin_update.sh from UNKNOWN (172.16.65.14) 2002/01/07 18:33:03 [10432]
2000 Jan 27
0
more NetBSD patches, for OpenSSH V1.2.2
...rev) prev->ai_next = cur; else $NetBSD: patch-ad,v 1.1 2000/01/17 05:34:34 christos Exp $ --- fake-getnameinfo.c.orig Sun Jan 16 23:45:45 2000 +++ fake-getnameinfo.c Sun Jan 16 23:48:01 2000 @@ -37,25 +37,27 @@ else strcpy(serv, tmpserv); } - if (host) - if (flags & NI_NUMERICHOST) + if (host) { + if (flags & NI_NUMERICHOST) { if (strlen(inet_ntoa(sin->sin_addr)) > hostlen) return EAI_MEMORY; else { strcpy(host, inet_ntoa(sin->sin_addr)); return 0; } - else - if (hp = gethostbyaddr((char *)&sin->sin_addr, sizeof(stru...
2018 Feb 23
6
RFC 8305 Happy Eyeballs in OpenSSH
...e if (errno != EINPROGRESS) + if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) { + errno = EAFNOSUPPORT; return -1; - - if (waitrfd(sockfd, timeoutp) == -1) + } + if (getnameinfo(ai->ai_addr, ai->ai_addrlen, + ntop, sizeof(ntop), + strport, sizeof(strport), + NI_NUMERICHOST|NI_NUMERICSERV) != 0) { + oerrno = errno; + error("%s: getnameinfo failed", __func__); + errno = oerrno; return -1; - - /* Completed or failed */ - if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, &optlen) == -1) { - debug("getsockopt: %s", strerror(errno));...
2014 Jun 23
2
ListenAdress Exclusion
I was wondering what everyone's thoughts were on a simpler way to exclude addresses from having listeners on them. I know a lot of people have multiple subnets, especially larger corporations. Some networks are non-route-able, and therefor unsuitable for use with SSH, aside from communication between other servers on the same subnet. Given that we may want to exclude those non-route-able
2015 Nov 13
0
[Bug 1860] UseDNS option ignored
...(4, TCGETS, 0x08046F64) Err#25 ENOTTY Which makes me think this is canohost.c:get_remote_hostname(). It does a getpeername() call that is probably the xgetscoaddr call above. It then does a: if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop), NULL, 0, NI_NUMERICHOST) != 0) call. This should not result in any DNS traffic though - it's requesting a numeric hostname. IMO the only way for it to end up in the DNS here is if the OS getnameinfo() is buggy. This is further supported by what it does next: 20538: open("/etc/services", O_RDONLY, 0666)...
2000 Sep 25
2
off-by-one errors in getnameinfo()
Description: getnameinfo() (confirmed for CVS version 1.14.2.1) does this sort of buffer size checks (these is just two of many cases): if (strlen(sp->s_name) > servlen) return ENI_MEMORY; strcpy(serv, sp->s_name); ... if (strlen(hp->h_name) > hostlen) {
2001 Jun 17
0
getnameinfo failed
...bin/ssh host 207.224.119.73, user user, command scp -v -f openssh-2.3.0p1.tar ssh_connect: getnameinfo failed I get that 3 times and then it gives up. I've changed ssh_connect as follows: if (getnameinfo(ai->ai_addr,ai->ai_addrlen, ntop, sizeof(ntop), strport,sizeof(strport), NI_NUMERICHOST|NI_NUMERICSERV) != 0) { error("ssh_connect: getnameinfo failed"); *** commented out next line continue; and now after the getnameinfo failed message it continues ... The authenticity of host '207.224.119.73' can't be established. and then everything works. I'm tr...
2002 Apr 08
1
compilation fails on Cobalt RaQ2
...ems to work fine with no options passed, but a make attempt fails in clientname.c: gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c clientname.c -o clientname.o clientname.c: In function `client_addr': clientname.c:55: warning: implicit 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...
2003 Jul 24
0
make fails all versions > 2.4.8 on older linux machine (clientname.o)
...minor errors during syncing with an up to date version (2.5.6) of rsync. my problem is that the make process actually won't finish, here is the output: clientname.c: In function `client_addr': clientname.c:72: warning: implicit 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...