search for: ss_family

Displaying 20 results from an estimated 85 matches for "ss_family".

Did you mean: sa_family
2015 Feb 26
4
Call for testing: OpenSSH 6.8
...rwarding is requested: > > debug1: channel 1: new [forwarded-streamlocal at openssh.com] > get_socket_address: getnameinfo 1 failed: ai_family not supported > get_sock_port: getnameinfo NI_NUMERICSERV failed: ai_family not supported That's strange, because we do: if (addr.ss_family == AF_UNIX) { /* Get the Unix domain socket path. */ return xstrdup(((struct sockaddr_un *)&addr)->sun_path); } so AF_UNIX should never get to getnameinfo...
2009 Nov 23
0
[PATCH] Bluetooth support.
...VE_BLUETOOTH +#include <bluetooth/bluetooth.h> +#include <bluetooth/rfcomm.h> +#endif + #include <ctype.h> #include <errno.h> #include <netdb.h> @@ -60,6 +65,16 @@ get_remote_hostname(int sock, int use_dn cleanup_exit(255); } +#ifdef HAVE_BLUETOOTH + if (from.ss_family == AF_BLUETOOTH) { + struct sockaddr_rc *from_rc = (void *)&from; + char ba[28]; + + sprintf(ba, "Bluetooth:"); + ba2str(&from_rc->rc_bdaddr, ba + 10); + return xstrdup(ba); + } +#endif if (from.ss_family == AF_INET) check_ip_options(sock, ntop); @@ -264,6 +279,16 @...
2002 Aug 12
0
Problem with canohost.c
...ux. I have tryed to contact some other forums, but without any success. So, the problem is with canohost.c, where I get the following mistake: canohost.c: In function `get_remote_hostname': canohost.c:36: storage size of `hints' isn't known canohost.c:49: structure has no member named `ss_family' canohost.c:98: structure has no member named `ss_family' canohost.c:100: warning: implicit declaration of function `getaddrinfo' canohost.c:106: dereferencing pointer to incomplete type canohost.c:107: dereferencing pointer to incomplete type canohost.c:107: dereferencing pointer to in...
2007 May 23
2
error during compile
Hello, I get this when I run ./configure. What does this mean? checking for struct sockaddr_storage.ss_family... yes checking for inet_pton... yes checking for xslt-config... no configure: error: XSLT configuration could not be found Thanks, Mike
2002 Mar 19
2
openssh 3.1p1: ToS trouble
Hi, I noticed that the Type of Service bit for minimize delay is set in client->server packets only. Is this OS-specific or is there another reason for this? Here is a tcpdump of an interactive connection: 217.225.98.212.22 > 134.169.34.19.45870: P 1:49(48) ack 48 win 12008 (DF) 134.169.34.19.45870 > 217.225.98.212.22: P 48:96(48) ack 49 win 25416 (DF) [tos 0x10] 217.225.98.212.22
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
2002 Apr 02
3
getaddrinfo() problem with AIX 4.3.3 and rsync 2.5.2?
...ogramming, I'll defer 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, R...
2002 May 20
0
Openssh 3.2.2p1 KRB5 addition
..., 0, sizeof(addr_6or4)); + if (getsockname(socket, (struct sockaddr *) &addr_6or4, &addr_6or4_len) < 0) { + debug("getsockname failed: %.100s", strerror(errno)); + fatal_cleanup(); + } + #ifdef IPV4_IN_IPV6 + if (addr_6or4.ss_family == AF_INET6) { + struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&addr_6or4; + + /* Detect IPv4 in IPv6 mapped address and convert it to */ + /* plain (AF_INET) IPv4 address */ + if (IN6_IS_ADDR_V4MAPPED(&addr6->sin6_ad...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...LL; > +struct acl_t *acl_head = NULL; > +struct access_t *access_head = NULL; > + > +/* > + * Stolen from privoxy code :] > + */ > +int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > + switch (ip_addr->ss_family) { > + case AF_INET: > + return((((struct sockaddr_in*)ip_addr)->sin_addr.s_addr & htonl(prefix)) == ((struct sockaddr_in*)net_addr)->sin_addr.s_addr); > + break; > + case AF_INET6: > + if (AF_INET6 == net_addr->ss_family) { > + struct in6_addr ip, net; > +...
2000 Sep 11
2
Problems/patches for BSD/OS 4.0.1
Two small problems with 2.2.0p1 on BSD/OS 4.0.1, both invoving the internal entropy collector: 1) The ``ls'' commands in ssh_prng_cmds.in all use -n, which isn't valid on BSD/OS and thus caused them all to fail when fixprogs checked them. BSD/OS does, however, have a -T flag which gives complete timestamp information (month, day, year, hour, minute, and second), which seems like a
2019 Oct 18
0
[PATCH libnbd 1/2] states: Don't assume socket address family is always AF_UNIX.
....c b/generator/states-connect.c index 04e894c..d62b0f5 100644 --- a/generator/states-connect.c +++ b/generator/states-connect.c @@ -51,7 +51,8 @@ STATE_MACHINE { int fd; assert (!h->sock); - fd = socket (AF_UNIX, SOCK_STREAM|SOCK_NONBLOCK|SOCK_CLOEXEC, 0); + fd = socket (h->connaddr.ss_family, + SOCK_STREAM|SOCK_NONBLOCK|SOCK_CLOEXEC, 0); if (fd == -1) { SET_NEXT_STATE (%.DEAD); set_error (errno, "socket"); -- 2.23.0
2000 Jan 18
1
Error when compiling for Solaris7
...d... no checking whether utmp.h has ut_id field... yes checking whether utmp.h has ut_addr field... no checking whether utmpx.h has ut_addr field... no checking whether utmp.h has ut_addr_v6 field... no checking whether utmpx.h has ut_addr_v6 field... no checking whether struct sockaddr_storage has ss_family field... no checking whether struct sockaddr_storage has __ss_family field... no checking location of lastlog file... /var/adm/lastlog checking for /dev/ptmx... (cached) yes checking for /dev/ptc... (cached) no checking whether libc defines __progname... no creating ./config.status creating Makefil...
2002 Sep 24
3
[Bug 401] ipv4 mapped address (ipv4 in ipv6) and ipv6 support fix
http://bugzilla.mindrot.org/show_bug.cgi?id=401 yoshfuji at linux-ipv6.org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|misc. ipv4-mapped address |ipv4 mapped address (ipv4 in |support fix |ipv6) and ipv6 support fix ------- Additional
2014 Jan 10
1
samba 4.1.3 -- multiple bugs & 1, 297 coredumps -- coredump backtrace + full-backtrace included
...try=0x7f6cb69a5360, msg_ctx=msg_ctx at entry=0x7f6cb69a5450, sock_fd=sock_fd at entry=34, interactive=interactive at entry=false) at ../source3/smbd/process.c:3627 frame = 0x7f6cb69c5f00 conn = <optimized out> sconn = <optimized out> ss = {ss_family = 2, __ss_align = 0, __ss_padding = "\001\000\000\000\000\000\000\000\350\001\304\265l\177", '\000' <repeats 34 times>, "\200\030", '\000' <repeats 22 times>, "@\005\304\265l\177\000\000\311\350\373\226", '\000' <repea...
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
...code :] > */ > -int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > +static int mask_cmp (const struct sockaddr_storage* ip_addr, unsigned int prefix, const struct sockaddr_storage* net_addr) { > switch (ip_addr->ss_family) { > case AF_INET: > return((((struct sockaddr_in*)ip_addr)->sin_addr.s_addr & htonl(prefix)) == ((struct sockaddr_in*)net_addr)->sin_addr.s_addr); > @@ -72,8 +73,31 @@ > return(0); > } > } > +#endif > > /* see if <addr> matches the acl <a...
2019 Oct 18
5
[PATCH libnbd 0/2] api: Add support for AF_VSOCK.
This is a series of patches to libnbd and nbdkit adding AF_VSOCK support. On the host side it allows you to start an nbdkit instance which listens on a virtio-vsock socket: $ ./nbdkit -fv --vsock memory 1G ... nbdkit: debug: bound to vsock 2:10809 On the guest side you can then use libnbd to connect to the server: $ ./run nbdsh -c 'h.connect_vsock(2, 10809)' -c
2004 Feb 25
3
[patch] Correct configure test for sin_len to compile on Tru64 Unix
The last versions of rsync fail to compile on Tru64 Unix (alpha), because of a typo in configure.in. The problem is that the code in configure check for sockaddr.sa_len, while the code uses sockaddr.sin_len. This patch fixes the problem. Please include it in the next version of rsync. diff -ur src-2.6.0/configure.in src-2.6.0-local/configure.in --- src-2.6.0-local/configure.in
2008 Aug 05
7
[ANNOUNCE] Samba 3.2.1 Available for Download
...s modules. o Herb Lewis <herb@samba.org> * Cleanup some duplicate code by passing the password to the wbinfo_auth* functions. * Allow SID with 0 in subauthority to be converted properly. o Zach Loafman <zachary.loafman@isilon.com> * Set sin[6]_family instead of ss_family in in[6]_addr_to_sockaddr_storage. * Fix realpath() check so that it doesn''t generate a core() when it fails. o Jim McDonough <jmcd@samba.org> * Fix overwriting of winbind logfiles. o Lars Müller <lars@samba.org> * Fix "vfs_full_audit.c: name table not...
2008 Aug 05
7
[ANNOUNCE] Samba 3.2.1 Available for Download
...s modules. o Herb Lewis <herb@samba.org> * Cleanup some duplicate code by passing the password to the wbinfo_auth* functions. * Allow SID with 0 in subauthority to be converted properly. o Zach Loafman <zachary.loafman@isilon.com> * Set sin[6]_family instead of ss_family in in[6]_addr_to_sockaddr_storage. * Fix realpath() check so that it doesn''t generate a core() when it fails. o Jim McDonough <jmcd@samba.org> * Fix overwriting of winbind logfiles. o Lars Müller <lars@samba.org> * Fix "vfs_full_audit.c: name table not...
2000 May 12
0
SunOS 4.x port
...O #undef HAVE_STRUCT_IN6_ADDR --- defines.h.DIST Mon May 1 08:03:56 2000 +++ defines.h Fri May 12 15:54:59 2000 @@ -150,6 +150,11 @@ # define HAVE_SIZE_T #endif /* HAVE_SIZE_T */ +#ifndef HAVE_SSIZE_T +typedef int ssize_t; +# define HAVE_SSIZE_T +#endif /* HAVE_SSIZE_T */ + #if !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE___SS_FAMILY_IN_SS) # define ss_family __ss_family #endif /* !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE_SA_FAMILY_IN_SS) */ @@ -279,5 +284,10 @@ #if defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) # undef HAVE_GETADDRINFO #endif /* def...