Displaying 20 results from an estimated 40 matches for "ai_protocol".
2003 May 12
2
[Bug 563] getaddrinfo() in libopenbsd-compat.a breaks heimdal-linked pam_krb5
...tedBy: buckh at pobox.com
i realize that fake-getaddrinfo.c says, ``Don't use it for another purpose,''
but if getaddrinfo can't be renamed then stuff like this is inevitable, and i
think it might not just be me so i wanted to point it out:
heimdal uses the getaddrinfo()-returned ai_protocol, ai_socktype and ai_protocol
in its socket() call in send_to_kdc(), after passing in the desired ai_socktype
in hints->ai_socktype. on Solaris 2.6, there's no getaddrinfo(), so heimdal
builds this into it's libroken and ssh builds this into libopenbsd-compat. when
sshd goes to use pam_kr...
2004 Apr 30
1
Code question (canohost.c)
...appen.
[..]
/* Bind the socket to an alternative 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
2006 Feb 20
1
Improved diagnostics patch
...match up the diagnostic error
messages.
-- David Favro
lists.samba.org at meta-dynamic dot com
http://meta-dynamic.com
The patch:
--- socket.c.~1.116.~ 2006-02-03 13:46:38.000000000 -0500
+++ socket.c 2006-02-20 07:18:11.000000000 -0500
@@ -364,6 +364,7 @@
resp->ai_protocol);
if (s == -1) {
+ rsyserr(FERROR, errno, "socket(%d,%d)", resp->ai_family, resp->ai_protocol );
/* See if there's another address that will work... */
continue;
}
@@ -385,6 +3...
2012 Feb 12
0
PATCH: multiple BindAddress
...FD, FD_CLOEXEC);
/* Bind the socket to 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...
2014 Jan 30
1
Announce: OpenSSH 6.5 released
Changes since OpenSSH 6.4
=========================
This is a feature-focused release.
New features:
* ssh(1), sshd(8): Add support for key exchange using elliptic-curve
Diffie Hellman in Daniel Bernstein's Curve25519. This key exchange
method is the default when both the client and server support it.
* ssh(1), sshd(8): Add support for Ed25519 as a public key type.
Ed25519 is a
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...nsigned short int)port);
>
> 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_family = AF_UNSPEC;
> hints.ai_socktype = SOCK_STREAM;
> hints.ai_protocol = IPPROTO_TCP;
> - hints.ai_flags = AI_ADDRCONFIG;
>
> - if (getaddrinfo (host, service, &hints, &r) != 0) {
> + if (getaddrinfo(host, sport, &hints, &res) != 0)
> + {
> ups->upserror = UPSCLI_ERR_NOSUCHHOST;
> - free (service);
> return -1;
>...
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, "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", hints.ai_protocol);
if (v == EAI_SYSTEM) {
fatal_with_errno(EXIT_FAILURE, "getaddrinfo");
}
fatalx(EXIT_FAILURE, "getaddrinfo: %s", gai_strerror(v));
}
I rebuilt nut and ran...
2009 Jul 09
0
[PATCH] Allow binding to a local port (OpenSSH 5.2)
...));
/* Bind the socket to an alternative local IP address */
- if (options.bind_address == NULL)
+ if (options.bind_address == NULL && options.bind_port == NULL)
return sock;
memset(&hints, 0, sizeof(hints));
@@ -202,7 +202,7 @@
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);
+ gaierr = getaddrinfo(options.bind_address, options.bind_port, &hints, &res);
if (gaierr) {
error("getaddrinfo: %s: %s", options.bind_address,...
2008 Sep 15
0
No subject
..._data.have_ssh2_key=1
use_privsep=1
?before get pwnam
?after get pwnam
?before set groups
?before daemon starts
?after daemon starts
before arc4random_stir
before chdir
?before signal
?after signal
?in else condition
AF_INET=2, AF_INET6=10
listen_sock=0ai->ai_family=2,ai->ai_socktype=2,ai->ai_protocol=6
listen_sock=5
Bind to port ssh on 0.0..0.0.
?strport=ssh
Server listening on 0.0.0.0 port ssh.
AF_INET=2, AF_INET6=10
listen_sock=5ai->ai_family=2,ai->ai_socktype=2,ai->ai_protocol=6
listen_sock=6
Bind to port ssh on ::.
?not binding
?before freeaddrinfo
?after freeaddrinfo
before? SIGHU...
2003 Mar 05
0
"rsync --daemon" and IPv4/v6 dual stack
...error));
- return -1;
- }
/* We may not be able to create the socket, if for example the
* machine knows about IPv6 in the C library, but not in the
* kernel. */
- for (resp = all_ai; resp; resp = resp->ai_next) {
- s = socket(resp->ai_family, resp->ai_socktype,
- resp->ai_protocol);
+ s = socket(resp->ai_family, resp->ai_socktype,
+ resp->ai_protocol);
- if (s == -1)
- /* See if there's another address that will work... */
- continue;
-
- setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
- (char *)&one, sizeof one);
-
- /* now we've got a so...
2008 Sep 18
2
SSHD_PROBLEM
..._data.have_ssh2_key=1
use_privsep=1
before get pwnam
after get pwnam
before set groups
before daemon starts
after daemon starts
before arc4random_stir
before chdir
before signal
after signal
in else condition
AF_INET=2, AF_INET6=10
listen_sock=0ai->ai_family=2,ai->ai_socktype=2,ai->ai_protocol=6
listen_sock=5
Bind to port ssh on 0.0.0.0.
strport=ssh
Server listening on 0.0.0.0 port ssh.
AF_INET=2, AF_INET6=10
listen_sock=5ai->ai_family=2,ai->ai_socktype=2,ai->ai_protocol=6
listen_sock=6
Bind to port ssh on ::.
not binding
before freeaddrinfo
after freeaddrinfo
before SIGHUP...
2011 Jul 17
2
openSSH 5.8p2 BindPort patch
...ve local IP address */
- if (options.bind_address == NULL)
+ if (options.bind_address == NULL && options.bind_port == NULL)
return sock;
memset(&hints, 0, sizeof(hints));
@@ -222,7 +222,7 @@ ssh_create_socket(int privileged, struct
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);
+ gaierr = getaddrinfo(options.bind_address, options.bind_port, &hints, &res);
if (gaierr) {
error("getaddrinfo: %s: %s", options.bind_address,...
2017 Jan 29
2
[PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...@@ -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_flags = ai_flags;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = IPPROTO_UDP;
err = getaddrinfo(strip_address(host), NULL, &hints, &addrResult);
diff --git a/common/tftpsubs.h b/common/tftpsubs.h
index b3a3bf3c95e1..0edda03a514c 100644
--- a/common/tftpsubs.h
+++ b/common/tftpsubs.h
@@ -98,7 +98,7 @@ static inline int sa_set_port(union sock_addr *...
2009 Jun 08
2
[PATCH] few minor bugfixes
...PF_INET;
- serv_addr.sin_port = htons(vncport);
- serv_addr.sin_addr.s_addr = ((struct in_addr *)(serv->h_addr))->s_addr;
+ // just use first found, ignoring rest
+ socketfd = socket(vnc_addr->ai_family,
+ vnc_addr->ai_socktype,
+ vnc_addr->ai_protocol);
- if (connect(socketfd,(struct sockaddr *)&serv_addr,sizeof(serv_addr)) < 0){
- return -1;
- }
+ if(connect(socketfd, vnc_addr->ai_addr, vnc_addr->ai_addrlen) <0)
+ socketfd = -1;
+
+ freeaddrinfo(vnc_addr);
return socketfd;
}
-#endif /* defined(HAVE_SOCKET...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...serrno = errno;
> - close(ups->fd);
> - 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...
2014 Feb 10
0
[PATCH] Basic SCTP support for OpenSSH client and server
...addrinfo hints, *ai, *aitop;
char strport[NI_MAXSERV];
int gaierr;
@@ -551,6 +573,7 @@ add_one_listen_addr(ServerOptions *options, char *addr, int port)
hints.ai_family = options->address_family;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = (addr == NULL) ? AI_PASSIVE : 0;
+ hints.ai_protocol = proto;
snprintf(strport, sizeof strport, "%d", port);
if ((gaierr = getaddrinfo(addr, strport, &hints, &aitop)) != 0)
fatal("bad addr or host: %s (%s)",
@@ -949,6 +972,12 @@ process_server_config_line(ServerOptions *options, char *line,
break;
+#ifdef USE...
2019 May 30
2
[PATCH nbdkit 1/2] nbd: Fix -Werror=maybe-uninitialized warning.
...gins/nbd/nbd.c
index dba46f1..4d0a67c 100644
--- a/plugins/nbd/nbd.c
+++ b/plugins/nbd/nbd.c
@@ -960,6 +960,8 @@ nbd_connect_tcp (void)
return -1;
}
+ assert (result != NULL);
+
for (rp = result; rp; rp = rp->ai_next) {
fd = socket (rp->ai_family, rp->ai_socktype, rp->ai_protocol);
if (fd == -1)
--
2.21.0
2017 Feb 03
5
[PATCH 0/5] Support socket activation in virt-p2v.
As the subject says, support socket activation in virt-p2v.
I have added upstream support for socket activation to nbdkit already:
https://github.com/libguestfs/nbdkit/commit/7ff39d028c6359f5c0925ed2cf4a2c4c751af2e4
I posted a patch for qemu-nbd, still waiting on more reviews for that
one:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg427246.html
I tested this against old and new qemu