Displaying 18 results from an estimated 18 matches for "s6_addr".
Did you mean:
__addr
2007 Jan 08
2
Re: [nut-commits] svn commit r714 - in trunk: . server
OK, I have removed the autoconf test for s6_addr32 (which is no longer
used), and wrote a new test for IN6_IS_ADDR_V4MAPPED. The latter is
probably portable, but since we're already in the business of testing,
it does not hurt to do so.
Arjen, I wonder about server/access.c, line 60-61:
return (IN6_IS_ADDR_V4MAPPED(ip6) &&...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...har 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 < sizeof ip.s6_addr; i++)
> + ip.s6_addr[i] = 0;
> +
> + return (memcmp (ip.s6_addr, net.s6_addr, sizeof ip.s6_addr)==0);
> + }
> + else if (AF_INET == net_addr->ss_family) { /* IPv4 mapped IPv6 */
> + str...
2000 Jan 17
1
pre27 compilation fails on Sol7 box
...sin6_addr' has incomplete type
*** Error code 1
make: Fatal error: Command failed for target atomicio.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_SOC...
2002 Dec 29
0
[Bug 460] New: ut_addr_v6 not used
...)
ut->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr;
# endif
+# ifdef HAVE_ADDR_V6_IN_UTMP
+ /* this is just a 128-bit IPv6 address */
+ if (li->hostaddr.sa.sa_family == AF_INET6) {
+ sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);
+ memcpy(ut->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
+ if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) {
+ ut->ut_addr_v6[0] = ut->ut_addr_v6[3];
+ ut->ut_addr_v6[1] = 0;
+ ut->ut_addr_v6[2] = 0;
+ ut->ut_addr_v6[3] = 0;
+ }
+ }
+# endif
}
#endif /* USE_UTMP || USE_WTMP || USE_LOGIN */
@@ -689,6 +705,9 @@
void
c...
2007 Jan 06
1
trunk build 708:access.c
...a little trouble building the 708 truck... access.c bombs out:
gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O -Wall
-Wsign-compare -MT access.o -MD -MP -MF .deps/access.Tpo -c -o access.o
access.c
access.c: In function `mask_cmp':
access.c:59: error: structure has no member named `s6_addr32'
access.c:61: error: structure has no member named `s6_addr32'
access.c:65: error: structure has no member named `s6_addr32'
access.c:65: error: structure has no member named `s6_addr32'
*** Error code 1
seems weird, looks like one of the IP6 updates wasn't defined somewhere?...
2000 Jan 27
0
more NetBSD patches, for OpenSSH V1.2.2
...r_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;
; return 0; }
@@ -2545,7 +2549,7 @@
if test "$cross_compiling" = yes; then
{ echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
else
- if test -r "/dev/urandom"; then
+ if test -r "/dev/urandom&...
2000 Jan 18
0
More NetBSD patches
...[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_STRUCT_IN6_ADDR)
@@ -280,6 +294,7 @@
AC_MSG_CHECKING([for struct addrinfo])
AC_TRY_COMPILE(
[
+ #include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
],
Index: fake-getaddrinfo.c
=============================================...
2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
>Submitter-Id: current-users
>Originator: Alex Vasylenko
>Organization:
>Confidential: no
>Synopsis: [patch] net/rsync: problems in client name lookup code
>Severity: non-critical
>Priority: low
>Category: ports
>Class: sw-bug
>Release: FreeBSD 4.8-RELEASE-p16 i386
>Environment:
System: FreeBSD 4.8-RELEASE-p16
>Description:
rsync does reverse name
2002 Nov 20
0
[PATCH] Updated patch to rsync for Stratus VOS
...ly, i;
char *addr, *p;
- u_long v4a;
- u_char pfx;
+ ulong_t v4a;
int h_error;
char numserv[512];
char numaddr[512];
@@ -143,10 +142,13 @@ getnameinfo(sa, salen, host, hostlen, se
break;
#ifdef INET6
case AF_INET6:
+ {
+ uchar_t pfx;
pfx = ((struct sockaddr_in6 *)sa)->sin6_addr.s6_addr[0];
if (pfx == 0 || pfx == 0xfe || pfx == 0xff)
flags |= NI_NUMERICHOST;
break;
+ }
#endif
}
if (host == NULL || hostlen == 0) {
diff -urp oldrsync/lib/inet_pton.c newrsync/lib/inet_pton.c
--- oldrsync/lib/inet_pton.c Tue Aug 27 14:45:14 2002
+++ newrsync/lib/inet_pton.c Sun Nov 17 0...
2010 Dec 07
0
[PATCH]: A daemon to support HyperV KVP functionality
...o getaddr_done;
+
+ } else {
+
+ /*
+ * We only support AF_INET and AF_INET6
+ * and the list of addresses is seperated by a ";".
+ */
+ struct sockaddr_in6 *addr =
+ (struct sockaddr_in6 *) curp->ifa_addr;
+
+ str = inet_ntop(family,
+ &addr->sin6_addr.s6_addr,
+ tmp, 50);
+ if (str == NULL) {
+ strcpy(buffer, "inet_ntop failed\n");
+ error = 1;
+ goto getaddr_done;
+ }
+ if (offset == 0)
+ strcpy(buffer, tmp);
+ else
+ strcat(buffer, tmp);
+ strcat(buffer, ";");
+ offset += strlen(str) + 1;
+...
2010 Dec 07
0
[PATCH]: A daemon to support HyperV KVP functionality
...o getaddr_done;
+
+ } else {
+
+ /*
+ * We only support AF_INET and AF_INET6
+ * and the list of addresses is seperated by a ";".
+ */
+ struct sockaddr_in6 *addr =
+ (struct sockaddr_in6 *) curp->ifa_addr;
+
+ str = inet_ntop(family,
+ &addr->sin6_addr.s6_addr,
+ tmp, 50);
+ if (str == NULL) {
+ strcpy(buffer, "inet_ntop failed\n");
+ error = 1;
+ goto getaddr_done;
+ }
+ if (offset == 0)
+ strcpy(buffer, tmp);
+ else
+ strcat(buffer, tmp);
+ strcat(buffer, ";");
+ offset += strlen(str) + 1;
+...
2010 Dec 08
0
No subject
...ddr_done;
+
+ } else {
+
+ /*
+ * We only support AF_INET and AF_INET6
+ * and the list of addresses is seperated by a =
";".
+ */
+ struct sockaddr_in6 *addr =3D
+ (struct sockaddr_in6 *) curp->ifa_addr;
+
+ str =3D inet_ntop(family,
+ &addr->sin6_addr.s6_addr,
+ tmp, 50);
+ if (str =3D=3D NULL) {
+ strcpy(buffer, "inet_ntop =
failed\n");
+ error =3D 1;
+ goto getaddr_done;
+ }
+ if (offset =3D=3D 0)
+ strcpy(buffer, tmp);
+ else
+ strcat(buffer, tmp);
+ strcat(buffer, ";");
+ offset +=3D strl...
2010 Dec 08
0
No subject
...ddr_done;
+
+ } else {
+
+ /*
+ * We only support AF_INET and AF_INET6
+ * and the list of addresses is seperated by a =
";".
+ */
+ struct sockaddr_in6 *addr =3D
+ (struct sockaddr_in6 *) curp->ifa_addr;
+
+ str =3D inet_ntop(family,
+ &addr->sin6_addr.s6_addr,
+ tmp, 50);
+ if (str =3D=3D NULL) {
+ strcpy(buffer, "inet_ntop =
failed\n");
+ error =3D 1;
+ goto getaddr_done;
+ }
+ if (offset =3D=3D 0)
+ strcpy(buffer, tmp);
+ else
+ strcat(buffer, tmp);
+ strcat(buffer, ";");
+ offset +=3D strl...
2010 Dec 17
0
[PATCH 4/4] Staging: hv: Add a user-space daemon to support key/value pair (KVP)
...o getaddr_done;
+
+ } else {
+
+ /*
+ * We only support AF_INET and AF_INET6
+ * and the list of addresses is seperated by a ";".
+ */
+ struct sockaddr_in6 *addr =
+ (struct sockaddr_in6 *) curp->ifa_addr;
+
+ str = inet_ntop(family,
+ &addr->sin6_addr.s6_addr,
+ tmp, 50);
+ if (str == NULL) {
+ strcpy(buffer, "inet_ntop failed\n");
+ error = 1;
+ goto getaddr_done;
+ }
+ if (offset == 0)
+ strcpy(buffer, tmp);
+ else
+ strcat(buffer, tmp);
+ strcat(buffer, ";");
+ offset += strlen(str) + 1;
+...
2010 Dec 17
0
[PATCH 4/4] Staging: hv: Add a user-space daemon to support key/value pair (KVP)
...o getaddr_done;
+
+ } else {
+
+ /*
+ * We only support AF_INET and AF_INET6
+ * and the list of addresses is seperated by a ";".
+ */
+ struct sockaddr_in6 *addr =
+ (struct sockaddr_in6 *) curp->ifa_addr;
+
+ str = inet_ntop(family,
+ &addr->sin6_addr.s6_addr,
+ tmp, 50);
+ if (str == NULL) {
+ strcpy(buffer, "inet_ntop failed\n");
+ error = 1;
+ goto getaddr_done;
+ }
+ if (offset == 0)
+ strcpy(buffer, tmp);
+ else
+ strcat(buffer, tmp);
+ strcat(buffer, ";");
+ offset += strlen(str) + 1;
+...
2001 Jul 16
0
No subject
...in6_family = 0;
; return 0; }
configure:5451: checking for struct in6_addr
configure:5467: cc -c -g -I/usr/local/ssl/include conftest.c 1>&5
cc: Error: configure, line 5463: In this declaration, "s" has no linkage and is of an incomplete type. (incompnolink)
struct in6_addr s; s.s6_addr[0] = 0;
-----------------^
configure: failed program was:
#line 5457 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netinet/in.h>
int main() {
struct in6_addr s; s.s6_addr[0] = 0;
; return 0; }
configure:5490: checking for struct addrinfo
c...
2000 Aug 26
0
New chroot patch, for 2.1.1p4
...= set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3585 "configure"
+#line 3587 "configure"
#include "confdefs.h"
#include <sys/types.h>
@@ -3591,7 +3593,7 @@
struct in6_addr s; s.s6_addr[0] = 0;
; return 0; }
EOF
-if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_have_struct_in...
2000 Oct 04
0
2.2.0p1 chroot patch
...= set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3688 "configure"
+#line 3690 "configure"
#include "confdefs.h"
#include <sys/types.h>
@@ -3694,7 +3696,7 @@
struct in6_addr s; s.s6_addr[0] = 0;
; return 0; }
EOF
-if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_have_struct_in...