search for: sockaddr_in6

Displaying 20 results from an estimated 88 matches for "sockaddr_in6".

Did you mean: sockaddr_in
2008 Jul 30
1
5.1p build problem on SCO OSR6
Build of 5.1p1 fails on SCO OSR6 with the error: UX:acomp: ERROR: "addrmatch.c", line 100: undefined struct/union member: sin6_scope_id configure checks for presence of struct sockaddr_in6 and uses the system declaration if found (via #define HAVE_STRUCT_SOCKADDR_IN6 in config.h) If not found, the struct is declared in openbsd-compat/fake-rfc2553.h. OSR6 has struct sockaddr_in6 but it does not include the sin6_scope_id member. The declaration in fake-rfc2553.h does include this memb...
2002 Nov 05
2
2.5.6 release
On Tue, Nov 05, 2002 at 08:37:00AM -0800, Martin Pool wrote: > On 10 Oct 2002, "Green, Paul" <Paul.Green@stratus.com> wrote: > > No new CVS messages have appeared on the rsync-cvs archives since August > > 30th. This seems rather odd-- perhaps a daemon stopped working? If there > > has truly been no activity since that date, I apologize for > >
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
2000 Mar 07
2
patch for openssh-1.2.2p1
...2.2p1-20000308/canohost.c Wed Mar 8 00:25:18 2000 @@ -42,6 +42,22 @@ debug("getpeername failed: %.100s", strerror(errno)); fatal_cleanup(); } + +#ifdef IPV4_IN_IPV6 + if (((struct sockaddr *)&from)->sa_family == AF_INET6 && + IN6_IS_ADDR_V4MAPPED((&((struct sockaddr_in6 *)&from)->sin6_addr))){ + struct in_addr addr; + u_int16_t port; + memcpy(&addr, ((char *)&((struct sockaddr_in6 *)&from)->sin6_addr)+12, + sizeof(addr)); + port = ((struct sockaddr_in6 *)&from)->sin6_port; + memset(&from, 0, sizeof(from)); + ((struct...
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...h-3.5p1/loginrec.c openssh-3.5p1/loginrec.c --- t/openssh-3.5p1/loginrec.c 2002-09-26 02:38:49.000000000 +0200 +++ openssh-3.5p1/loginrec.c 2002-11-05 13:14:33.000000000 +0100 @@ -609,6 +609,9 @@ construct_utmp(struct logininfo *li, struct utmp *ut) { +# ifdef HAVE_ADDR_V6_IN_UTMP + struct sockaddr_in6 *sa6; +# endif memset(ut, '\0', sizeof(*ut)); /* First fill out fields used for both logins and logouts */ @@ -661,6 +664,19 @@ if (li->hostaddr.sa.sa_family == AF_INET) ut->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr; # endif +# ifdef HAVE_ADDR_V6_IN_UTMP + /* this i...
2004 Dec 10
2
listen to port on ipv6 by default[patch]
right now icecast2 listens to 0.0.0.0 by default if bind-address is not defined. it should rather listen to :: if ipv6 is available. the change is rather small. i do not know how that works on systems that do not support IPv6 yet. so i added #ifdef AF_INET6, is that the right way to check for ipv6? attached is a patch against http://svn.xiph.org/icecast/trunk/net/ if it is ok like that it would
2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
...ientname.c.orig Fri Jan 10 21:05:56 2003 +++ clientname.c Thu Apr 1 10:57:05 2004 @@ -101,58 +101,58 @@ char *client_name(int fd) static char name_buf[100]; static char port_buf[100]; static int initialised; - struct sockaddr_storage ss, *ssp; - struct sockaddr_in sin; -#ifdef INET6 - struct sockaddr_in6 sin6; -#endif - socklen_t ss_len; + struct sockaddr_storage ss; - if (initialised) return name_buf; + if (initialised) + return name_buf; strcpy(name_buf, default_name); initialised = 1; + memset(&ss, 0, sizeof(ss)); + if (am_server) { /* daemon over --rsh mode */ char *add...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...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; > + register unsigned char i; > + > + memcpy (&ip, &((struct sockaddr_in6 *)ip_addr)->sin6_addr, sizeof (struct in6_addr)); > + memcpy (&net, &((struct sockaddr_in6 *)net_addr)->sin6_addr, sizeof (struct in6_addr)); > + > + i = prefix/8; > + if (prefix%8) > + ip.s6_addr[i++] &= 0xff<<(8-(prefix%8)); > + for (; i &lt...
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
2002 Jun 28
0
[Bug 316] New: ifdefs for systems without IPV6
...inoex.sub.org --- sshconnect.c.orig Wed Aug 8 00:29:09 2001 +++ sshconnect.c Wed Oct 3 14:28:15 2001 @@ -577,11 +577,13 @@ sin_addr.s_addr) >> 24) == IN_LOOPBACKNET; salen = sizeof(struct sockaddr_in); break; +#ifdef HAVE_STRUCT_SOCKADDR_IN6 case AF_INET6: local = IN6_IS_ADDR_LOOPBACK( &(((struct sockaddr_in6 *)hostaddr)->sin6_addr)); salen = sizeof(struct sockaddr_in6); break; +#endif default: local = 0; salen = s...
2002 Oct 21
0
[Bug 418] New: Allow to build on systems without IPV6
...not detected: --- sshconnect.c.orig Wed Aug 8 00:29:09 2001 +++ sshconnect.c Wed Oct 3 14:28:15 2001 @@ -577,11 +577,13 @@ sin_addr.s_addr) >> 24) == IN_LOOPBACKNET; salen = sizeof(struct sockaddr_in); break; +#ifdef HAVE_STRUCT_SOCKADDR_IN6 case AF_INET6: local = IN6_IS_ADDR_LOOPBACK( &(((struct sockaddr_in6 *)hostaddr)->sin6_addr)); salen = sizeof(struct sockaddr_in6); break; +#endif default: local = 0; salen = s...
2002 May 20
0
Openssh 3.2.2p1 KRB5 addition
...(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_addr)) { + struct sockaddr_in *...
2009 Nov 23
0
[PATCH] Bluetooth support.
...H) { + struct sockaddr_rc *from_rc = (void *)&addr; + char ba[28]; + + sprintf(ba, "Bluetooth:"); + ba2str(&from_rc->rc_bdaddr, ba + 10); + return xstrdup(ba); + } +#endif /* Work around Linux IPv6 weirdness */ if (addr.ss_family == AF_INET6) addrlen = sizeof(struct sockaddr_in6); @@ -375,6 +400,13 @@ get_sock_port(int sock, int local) } } +#ifdef HAVE_BLUETOOTH + if (from.ss_family == AF_BLUETOOTH) { + struct sockaddr_rc *from_rc = (void *)&from; + + return from_rc->rc_channel; + } +#endif /* Work around Linux IPv6 weirdness */ if (from.ss_family == AF...
2000 Jan 17
1
pre27 compilation fails on Sol7 box
...micio.o' This is indeed bizarre because the bit of code in question is: ------->8-----fake-socket.h--starting-at-line-28------- #ifndef HAVE_STRUCT_IN6_ADDR struct in6_addr { u_int8_t s6_addr[16]; <------ line 30 }; #endif /* !HAVE_STRUCT_IN6_ADDR */ #ifndef HAVE_STRUCT_SOCKADDR_IN6 struct sockaddr_in6 { unsigned short sin6_family; u_int16_t sin6_port; u_int32_t sin6_flowinfo; struct in6_addr sin6_addr; <------- line 39 }; #endif /* !HAVE_STRUCT_SOCKADDR_IN6 */ ---------8<------------------------------------------- which would appear to have the req...
2010 Sep 23
4
[Bug 1825] New: ipv64_normalise_mapped()'s memset should use a4, not addr, for clarity
...Priority: P2 Component: Miscellaneous AssignedTo: unassigned-bugs at mindrot.org ReportedBy: foo at mailinator.com The current code in "canohost.c" looks like this: void ipv64_normalise_mapped(struct sockaddr_storage *addr, socklen_t *len) { struct sockaddr_in6 *a6 = (struct sockaddr_in6 *)addr; struct sockaddr_in *a4 = (struct sockaddr_in *)addr; ... memset(addr, 0, sizeof(*a4)); That last line has the correct behavior, but it would help with static analysis and compiler diagnostics if it were written as: memset(a4, 0, sizeof(*a4)); A comp...
2004 Mar 02
2
[PATCH] Force mountd(8) to a specified port.
...-u -r1.74 mountd.c --- mountd.c 30 Oct 2003 22:57:43 -0000 1.74 +++ mountd.c 2 Mar 2004 21:08:17 -0000 @@ -272,11 +272,15 @@ fd_set readfds; SVCXPRT *udptransp, *tcptransp, *udp6transp, *tcp6transp; struct netconfig *udpconf, *tcpconf, *udp6conf, *tcp6conf; + struct sockaddr_in sin; + struct sockaddr_in6 sin6; int udpsock, tcpsock, udp6sock, tcp6sock; + char *endptr; + in_port_t svcport = 0; int xcreated = 0, s; int maxrec = RPC_MAXDATASIZE; int one = 1; - int c; + int c, r; udp6conf = tcp6conf = NULL; udp6sock = tcp6sock = NULL; @@ -298,7 +302,7 @@ errx(1, "NFS server is not...
2007 Oct 18
0
[PATCH] Use credentials and permissions on control socket where available
....in index 670e855..6b13eb3 100644 --- a/configure.in +++ b/configure.in @@ -114,7 +114,7 @@ AC_STRUCT_TM tinc_ATTRIBUTE(__malloc__) -AC_CHECK_TYPES([socklen_t, struct ether_header, struct arphdr, struct ether_arp, struct in_addr, struct addrinfo, struct ip, struct icmp, struct in6_addr, struct sockaddr_in6, struct ip6_hdr, struct icmp6_hdr, struct nd_neighbor_solicit, struct nd_opt_hdr], , , +AC_CHECK_TYPES([socklen_t, struct ether_header, struct arphdr, struct ether_arp, struct in_addr, struct addrinfo, struct ip, struct icmp, struct in6_addr, struct sockaddr_in6, struct ip6_hdr, struct icmp6_hdr, s...
2000 Jan 18
0
More NetBSD patches
...AC_MSG_CHECKING([for struct sockaddr_storage]) AC_TRY_COMPILE( - [#include <sys/socket.h>], + [ +#include <sys/types.h> +#include <sys/socket.h> + ], [struct sockaddr_storage s;], [ AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE) @@ -257,7 +265,10 @@ AC_MSG_CHECKING([for struct sockaddr_in6]) AC_TRY_COMPILE( - [#include <netinet/in.h>], + [ +#include <sys/types.h> +#include <netinet/in.h> + ], [struct sockaddr_in6 s; s.sin6_family = 0;], [ AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6) @@ -268,7 +279,10 @@ AC_MSG_CHECKING([for struct in6_addr]) AC_TRY_COMPILE( - [#i...
2019 Sep 15
0
[PATCH nbdkit 4/4] reflection: Enhance plugin to support client address mode.
...alue); return -1; @@ -137,6 +144,74 @@ decode_base64 (const char *data, size_t len, struct handle *ret) #endif } +static int +handle_address (struct sockaddr *sa, socklen_t addrlen, + struct handle *ret) +{ + struct sockaddr_in *addr = (struct sockaddr_in *) sa; + struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *) sa; + union { + char straddr[INET_ADDRSTRLEN]; + char straddr6[INET6_ADDRSTRLEN]; + } u; + int r; + char *str; + + switch (addr->sin_family) { + case AF_INET: + if (inet_ntop (AF_INET, &addr->sin_addr, + u.straddr, sizeof u...
2003 Oct 08
2
2.5.6: a number of minor issues
...bvious reason for their presence. Here are patches to fix the printf mistakes and shut the compiler warnings up about the unused arguments. --- OLD/clientname.c Thu Jan 1 00:00:00 1970 +++ NEW/clientname.c Thu Jan 1 00:00:00 1970 @@ -277,8 +277,8 @@ if (ai->ai_addrlen < sizeof(struct sockaddr_in6)) { rprintf(FERROR, - "%s: too short sockaddr_in6; length=%d\n", - fn, ai->ai_addrlen); + "%s: too short sockaddr_in6; length=%lu\n", + fn, (unsigned long int) ai->ai_addrlen); return 1; } --- OLD/generator.c Thu Jan 1 00:00:00 1970 +++ NEW/genera...