Displaying 20 results from an estimated 65 matches for "ai_flags".
Did you mean:
ti_flags
2001 Jun 09
2
[PATCH] Make "-L" local ports bind to "127.0.0.1" in openssh-2.9p1
...f -u -r -N openssh-2.9p1/channels.c openssh-2.9p1-ajf.1/channels.c
--- openssh-2.9p1/channels.c Tue Apr 17 14:14:35 2001
+++ openssh-2.9p1-ajf.1/channels.c Wed Jun 6 23:25:36 2001
@@ -1815,13 +1815,25 @@
/*
* getaddrinfo returns a loopback address if the hostname is
* set to NULL and hints.ai_flags is not AI_PASSIVE
+ *
+ * Oh yeah? Setting hostname to NULL and hints.ai_flags to
+ * AI_PASSIVE on Red Hat Linux release 6.0 (Hedwig) with
+ * Linux kernel 2.2.14 does no such thing. On that system
+ * "::" and "0.0.0.0" (and maybe one other value which slips
+ * my mem...
2017 Jan 29
2
[PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...c
index 8c999f66eed8..344c74b3d78c 100644
--- a/common/tftpsubs.c
+++ b/common/tftpsubs.c
@@ -300,7 +300,7 @@ int pick_port_bind(int sockfd, union sock_addr *myaddr,
}
int
-set_sock_addr(char *host,union sock_addr *s, char **name)
+set_sock_addr(char *host, union sock_addr *s, char **name, int ai_flags)
{
struct addrinfo *addrResult;
struct addrinfo hints;
@@ -308,7 +308,7 @@ set_sock_addr(char *host,union sock_addr *s, char **name)
memset(&hints, 0, sizeof(hints));
hints.ai_family = s->sa.sa_family;
- hints.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;
+ hints.ai_...
2017 Feb 02
0
Bug#771441: [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...4
> --- a/common/tftpsubs.c
> +++ b/common/tftpsubs.c
> @@ -300,7 +300,7 @@ int pick_port_bind(int sockfd, union sock_addr *myaddr,
> }
>
> int
> -set_sock_addr(char *host,union sock_addr *s, char **name)
> +set_sock_addr(char *host, union sock_addr *s, char **name, int ai_flags)
> {
> struct addrinfo *addrResult;
> struct addrinfo hints;
> @@ -308,7 +308,7 @@ set_sock_addr(char *host,union sock_addr *s, char **name)
>
> memset(&hints, 0, sizeof(hints));
> hints.ai_family = s->sa.sa_family;
> - hints.ai_flags = AI_C...
2002 Mar 21
1
BindAddress with Openssh
Hi
In a nutshell, the BindAddress functionality doesn't seem to work (at
least on Solaris 7 when using the fake-gettaddrinfo module provided). I
haven't been able to test on other OS versions or using an OS library
provided getaddrinfo (such as OpenBSD), but the unless the functionality
of getaddrinfo is majorly different, I think this problem would be
similar everywhere.
The code in
2004 Apr 30
1
Code question (canohost.c)
...rnative local IP address */
if (options.bind_address == NULL)
return sock;
memset(&hints, 0, sizeof(hints));
hints.ai_family = ai->ai_family;
hints.ai_socktype = ai->ai_socktype;
hints.ai_protocol = ai->ai_protocol;
hints.ai_flags = AI_PASSIVE;
gaierr = getaddrinfo(options.bind_address, "0", &hints, &res);
[..]
- Ben
2004 Apr 30
1
rsync-2.6.2pre1: In clientname.c `AI_NUMERICHOST' undeclared
...error:
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientname.c
-o clientname.o
clientname.c: In function `client_name':
clientname.c:121: `AI_NUMERICHOST' undeclared (first use in this function)
In analogy to the coding in access.c I replaced in clientname.c
hints.ai_flags = AI_NUMERICHOST;
by
#ifdef AI_NUMERICHOST
hints.ai_flags = AI_NUMERICHOST;
#endif
and the compiling works.
Sorry, I am not a C expert.
Jens
--
Dr. Jens Schleusener T-Systems Solutions for Research GmbH
Tel: +49 551 709-2493 Bunsenstr.10
Fax: +49 551 709-2169...
2013 Dec 17
0
kernel update to 3.12.5-1, now: upsd[617]: getaddrinfo: Servname not supported for ai_socktype
On Dec 16, 2013, at 10:11 PM, David C. Rankin wrote:
> On 12/16/2013 08:01 PM, Charles Lepple wrote:
>> On Dec 16, 2013, at 4:19 PM, David C. Rankin wrote:
>>
>>>> Dec 16 14:05:16 phoinix upsd[369]: getaddrinfo: Servname not supported for
>>>> ai_socktype
>> [...]
>>>> The kernel update was from linux (3.12.1-3 -> 3.12.5-1), I don't
2013 Dec 17
2
kernel update to 3.12.5-1, now: upsd[617]: getaddrinfo: Servname not supported for ai_socktype
On 12/16/2013 08:01 PM, Charles Lepple wrote:
> On Dec 16, 2013, at 4:19 PM, David C. Rankin wrote:
>
>> > Dec 16 14:05:16 phoinix upsd[369]: getaddrinfo: Servname not supported for
>> > ai_socktype
> [...]
>> > The kernel update was from linux (3.12.1-3 -> 3.12.5-1), I don't see what
>> > could have changed. How do I attempt to further
2013 Dec 17
4
kernel update to 3.12.5-1, now: upsd[617]: getaddrinfo: Servname not supported for ai_socktype
...(stderr, "getaddrinfo : %s\n", gai_strerror(v));
fprintf(stderr, "Server addr (Nodename) : %s\n", server->addr);
fprintf(stderr, "Server port (Servname) : %s\n", server->port);
fprintf(stderr, "hints.ai_flags : %d\n", hints.ai_flags);
fprintf(stderr, "hints.ai_family : %d\n", hints.ai_family);
fprintf(stderr, "hints.ai_socktype : %d\n", hints.ai_socktype);
fprintf(stderr, "hints.ai_protocol : %d\n&...
2002 Jan 07
1
rsync-2.5.1 / socket.c - unititialized variable breaks build.
...prj_src:socket.tpu on
6-JAN-20
02 08:40:51.01 OPENVMS_AXP */
/* -*- c-file-style: "linux" -*-
Copyright (C) 1992-2001 by Andrew Tridgell <tridge@samba.org>
@@ -105,7 +106,8 @@
bhints.ai_family = ai_family;
bhints.ai_socktype = ai_socktype;
bhints.ai_flags = AI_PASSIVE;
- if (getaddrinfo(bind_address, NULL, &bhints, &bres_all) == -1) {
+ error = getaddrinfo(bind_address, NULL, &bhints, &bres_all);
+ if (error == -1) {
rprintf(FERROR, RSYNC_NAME ": getaddrinfo %s: %s\n",...
2016 Dec 13
0
remotetcp_chert
...t present. Only failed tests indicate a problem.
A notable change to the networking code between 1.2 and 1.4 was that
we switched to using getaddrinfo() to resolve names. But that ought
to be able to handle a string with an IP address, as it does on
Linux, etc. For the server we use:
hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG | AI_NUMERICSERV;
And for the client:
hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV;
The switch to getaddrinfo() was a first step towards IPv6 support,
but also replaces use of an obsolete, non-thread-safe API with a
thread-safe alternative API which we can rea...
2002 Apr 02
3
getaddrinfo() problem with AIX 4.3.3 and rsync 2.5.2?
...to almost anyone :-)
Perhaps it's just AIX 4.3.3 getaddrinfo() that's busted?
$ gdiff -u clientname.c.orig clientname.c
--- clientname.c.orig Fri Jan 25 17:59:37 2002
+++ clientname.c Mon Apr 1 13:32:10 2002
@@ -240,7 +240,7 @@
hints.ai_family = ss_family;
hints.ai_flags = AI_CANONNAME;
hints.ai_socktype = SOCK_STREAM;
- error = getaddrinfo(name_buf, port_buf, &hints, &res0);
+ error = getaddrinfo(name_buf, NULL, &hints, &res0);
if (error) {
rprintf(FERROR,
RSYNC_NAME ": forwar...
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...(0x7f000001), hints);
+ *res = malloc_ai(port, htonl(0x7f000001), hints, NULL);
if (*res == NULL)
return (EAI_MEMORY);
return (0);
}
if (inet_aton(hostname, &in)) {
- *res = malloc_ai(port, in.s_addr, hints);
+ const char *canonname = NULL;
+ if (hints && hints->ai_flags & AI_CANONNAME)
+ canonname = hostname;
+ *res = malloc_ai(port, in.s_addr, hints, canonname);
if (*res == NULL)
return (EAI_MEMORY);
return (0);
@@ -213,8 +229,12 @@
cur = prev = *res = NULL;
for (i = 0; hp->h_addr_list[i]; i++) {
struct in_addr *in = (struct in_addr...
2003 Oct 28
4
simple compile
...ne 264: In this statement, "EAI_BADHINTS"
is not declared. (undeclared)
ERR(EAI_BADHINTS); /* xxx */
------------------------^
cc: Error: lib/getaddrinfo.c, line 265: In this statement, "AI_MASK" is
not declared. (undeclared)
if (hints->ai_flags & ~AI_MASK)
---------------------------------------^
cc: Error: lib/getaddrinfo.c, line 299: In this statement, "EAI_BADHINTS"
is not declared. (undeclared)
ERR(EAI_BADHINTS); /*xxx*/
--------------------------------^
cc: Error: lib/getaddrinfo.c,...
2016 Dec 08
2
remotetcp_chert
Dear Olly Betts,
same 32 bit
compiler version
hardware
OS
OS version
as here (where remotetcp_chert passed and skipped 3)
xapian-core-1.2.21.tar.xz
http://nurmi-labs.blogspot.com/2015/10/xapian.html
./apitest backend remoteprog_brass: All 225 tests passed, 3 skipped.
./apitest backend remotetcp_brass: All 225 tests passed, 3 skipped.
./apitest backend remoteprog_chert: All 225 tests passed,
2000 Jan 18
4
AIX- 'Host not found' in getaddrinfo("0.0.0.0", "22" , ...)
...built with values taken from a debug-session:
=======================================================
#include <stdio.h>
#include <sys/socket.h>
#include <netdb.h>
void main (void) {
struct addrinfo hints;
struct addrinfo *res;
int gaierr;
hints.ai_family = AF_UNSPEC;
hints.ai_flags = 0;
hints.ai_flags = 0;
hints.ai_family = 0;
hints.ai_socktype = 1; /* = SOCK_STREAM; */
hints.ai_protocol = 0;
hints.ai_addrlen = 0;
hints.ai_canonname = 0x0;
hints.ai_addr = 0x0;
hints.ai_next = 0x0;
gaierr = getaddrinfo("0.0.0.0", "22" , &hints, &res);
printf("...
2003 Mar 05
0
"rsync --daemon" and IPv4/v6 dual stack
...onst char *bind_address,
- int af_hint)
+static int open_socket_in(struct addrinfo *resp)
{
int one=1;
int s;
- struct addrinfo hints, *all_ai, *resp;
- char portbuf[10];
- int error;
-
- memset(&hints, 0, sizeof(hints));
- hints.ai_family = af_hint;
- hints.ai_socktype = type;
- hints.ai_flags = AI_PASSIVE;
- snprintf(portbuf, sizeof(portbuf), "%d", port);
- error = getaddrinfo(bind_address, portbuf, &hints, &all_ai);
- if (error) {
- rprintf(FERROR, RSYNC_NAME ": getaddrinfo: bind address %s: %s\n",
- bind_address, gai_strerror(error));
- return -1;
- }...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...);
> - ups->fd = -1;
> + memset (&hints, 0, sizeof (struct addrinfo));
> + hints.ai_family = flags & UPSCLI_CONN_INET ? AF_INET : (flags & UPSCLI_CONN_INET6 ? AF_INET6 : AF_UNSPEC);
> + hints.ai_socktype = SOCK_STREAM;
> + hints.ai_protocol = IPPROTO_TCP;
> + hints.ai_flags = AI_ADDRCONFIG;
>
> + if (getaddrinfo (host, service, &hints, &r) != 0) {
> + ups->upserror = UPSCLI_ERR_NOSUCHHOST;
> + free (service);
> return -1;
> }
> + free (service);
>
> - if (connect(ups->fd, (struct sockaddr *) &server,
> - siz...
2002 Apr 23
3
rsync hanging (Sun -> AIX)
I'm trying to rync working between the UK (Sun box) and India (AIX box) and
am having a real problems getting it up and running because every time I do
a full transfer it hangs. The Sun box is the one holding the canonical
source which we want to mirror.
I've been shipped to the India office to get this working and have tried
hundreds of things over the last week, I've also scoured
2012 Feb 12
0
PATCH: multiple BindAddress
...an alternative local IP address */
- if (options.bind_address == NULL)
+ if (options.num_bind_address == 0){
return sock;
+ }
- memset(&hints, 0, sizeof(hints));
- hints.ai_family = ai->ai_family;
- hints.ai_socktype = ai->ai_socktype;
- hints.ai_protocol = ai->ai_protocol;
- hints.ai_flags = AI_PASSIVE;
- gaierr = getaddrinfo(options.bind_address, NULL, &hints, &res);
- if (gaierr) {
- error("getaddrinfo: %s: %s", options.bind_address,
- ssh_gai_strerror(gaierr));
- close(sock);
- return -1;
+ uint addrfound = 0;
+ uint last_idx = options.num_bind_address -...