search for: sin6_family

Displaying 14 results from an estimated 14 matches for "sin6_family".

2000 Jan 17
1
pre27 compilation fails on Sol7 box
...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 requisite number of semicolons. When I comment out line...
2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
...3); p++) { - if (*p == '.') - dots++; - } - if (dots > 3) { - /* more than 4 parts to IP address, must be ipv6 */ - ssp = (struct sockaddr_storage *) &sin6; - ss_len = sizeof sin6; - memset(ssp, 0, ss_len); - inet_pton(AF_INET6, addr, &sin6.sin6_addr); - sin6.sin6_family = AF_INET6; - } else -#endif - { - ssp = (struct sockaddr_storage *) &sin; - ss_len = sizeof sin; - memset(ssp, 0, ss_len); - inet_pton(AF_INET, addr, &sin.sin_addr); - sin.sin_family = AF_INET; + struct addrinfo hint; + struct addrinfo *answer; + int err; + + memset(&hi...
2017 Jan 29
2
[PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...AI_PASSIVE); if (err) { syslog(LOG_ERR, "cannot resolve local IPv4 bind address: %s, %s", @@ -650,7 +651,8 @@ int main(int argc, char **argv) if (fd6 >= 0) { bindaddr6.sin6_family = AF_INET6; err = set_sock_addr(address, - (union sock_addr *)&bindaddr6, NULL); + (union sock_addr *)&bindaddr6, NULL, + AI_PASSIVE);...
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
2017 Feb 02
0
Bug#771441: [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...if (err) { > syslog(LOG_ERR, > "cannot resolve local IPv4 bind address: %s, %s", > @@ -650,7 +651,8 @@ int main(int argc, char **argv) > if (fd6 >= 0) { > bindaddr6.sin6_family = AF_INET6; > err = set_sock_addr(address, > - (union sock_addr *)&bindaddr6, NULL); > + (union sock_addr *)&bindaddr6, NULL, > + AI_PASSIVE)...
2000 Jan 27
0
more NetBSD patches, for OpenSSH V1.2.2
...quot;"$ssldir" 1>&6 @@ -2321,7 +2321,9 @@ cat > conftest.$ac_ext <<EOF #line 2323 "configure" #include "confdefs.h" +#include <sys/types.h> #include <netinet/in.h> +#include <netinet/in6.h> int main() { struct sockaddr_in6 s; s.sin6_family = 0; ; return 0; } @@ -2349,7 +2351,9 @@ cat > conftest.$ac_ext <<EOF #line 2351 "configure" #include "confdefs.h" +#include <sys/types.h> #include <netinet/in.h> +#include <netinet/in6.h> int main() { struct in6_addr s; s.s6_addr[0] = 0; ; ret...
2000 Jan 18
0
More NetBSD patches
...], [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( - [#include <netinet/in.h>], + [ +#include <sys/types.h> +#include <netinet/in.h> + ], [struct in6_addr s; s.s6_addr[0] = 0;], [ AC_DEFINE(HAVE_...
2004 Mar 02
2
[PATCH] Force mountd(8) to a specified port.
...(1); } } + if (svcport != 0) { + bzero(&sin, sizeof(struct sockaddr_in)); + sin.sin_len = sizeof(struct sockaddr_in); + sin.sin_family = AF_INET; + sin.sin_port = htons(svcport); + + bzero(&sin6, sizeof(struct sockaddr_in6)); + sin6.sin6_len = sizeof(struct sockaddr_in6); + sin6.sin6_family = AF_INET6; + sin6.sin6_port = htons(svcport); + } if (udpsock != -1 && udpconf != NULL) { - bindresvport(udpsock, NULL); + if (svcport != 0) { + r = bindresvport(udpsock, &sin); + if (r != 0) { + syslog(LOG_ERR, "bindresvport: %m"); + exit(1); + } + } else +...
2008 Sep 12
4
Custom build kernel patch fails big time.
...t->saddr.a4 = sin->sin_addr.s_addr; sin++; if (sin->sin_family != AF_INET) @@ -1779,9 +1779,7 @@ break; #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) case AF_INET6: - sin6 = (void *)(rq+1); - if (sin6->sin6_family != AF_INET6) - return -EINVAL; + sin6 = (struct sockaddr_in6 *)sa; memcpy(t->saddr.a6, &sin6->sin6_addr, sizeof(struct in6_addr)); sin6++; if (sin6->sin6_family != AF_INET6) @@ -1792,6 +1790,7 @@ default:...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...ddr, ']'); > + if (stmp == NULL) { > + free (tmp); > + fatal_with_errno("Expecting \']\' in \"%s\"", addr); > + } > + > + *stmp = '\0'; > + addr++; > + > + memset (&s6, 0, sizeof (struct sockaddr_in6)); > + s6.sin6_family = AF_INET6; > + > + if (inet_pton (AF_INET6, addr, &s6.sin6_addr) < 1) { > + free (tmp); > + fatal_with_errno("Invalid IPv6 address: \"%s\"", addr); > + } > + > + /* prefix */ > + tmp->mask = strtol (mask, NULL, 10); > + > + if (t...
2017 Feb 02
2
Bug#771441: [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...t; > syslog(LOG_ERR, > > "cannot resolve local IPv4 bind address: %s, %s", > > @@ -650,7 +651,8 @@ int main(int argc, char **argv) > > if (fd6 >= 0) { > > bindaddr6.sin6_family = AF_INET6; > > err = set_sock_addr(address, > > - (union sock_addr *)&bindaddr6, NULL); > > + (union sock_addr *)&bindaddr6, NULL, > > +...
2001 Jul 16
0
No subject
...rage s; ; return 0; } configure:5412: checking for struct sockaddr_in6 configure:5428: cc -c -g -I/usr/local/ssl/include conftest.c 1>&5 cc: Error: configure, line 5424: In this declaration, "s" has no linkage and is of an incomplete type. (incompnolink) struct sockaddr_in6 s; s.sin6_family = 0; ---------------------^ configure: failed program was: #line 5418 "configure" #include "confdefs.h" #include <sys/types.h> #include <netinet/in.h> int main() { struct sockaddr_in6 s; s.sin6_family = 0; ; return 0; } configure:5451: checking for struct in6_...
2000 Aug 26
0
New chroot patch, for 2.1.1p4
...et"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3546 "configure" +#line 3548 "configure" #include "confdefs.h" #include <sys/types.h> @@ -3552,7 +3554,7 @@ struct sockaddr_in6 s; s.sin6_family = 0; ; return 0; } EOF -if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_struct_socka...
2000 Oct 04
0
2.2.0p1 chroot patch
...et"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3649 "configure" +#line 3651 "configure" #include "confdefs.h" #include <sys/types.h> @@ -3655,7 +3657,7 @@ struct sockaddr_in6 s; s.sin6_family = 0; ; return 0; } EOF -if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_struct_socka...