[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11153 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11153 - gnunet/src/transport |
Date: |
Mon, 3 May 2010 01:22:22 +0200 |
Author: amatus
Date: 2010-05-03 01:22:21 +0200 (Mon, 03 May 2010)
New Revision: 11153
Modified:
gnunet/src/transport/plugin_transport_tcp.c
gnunet/src/transport/plugin_transport_udp.c
Log:
Set the oft-forgotten sin_len.
Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2010-05-02 14:53:49 UTC (rev
11152)
+++ gnunet/src/transport/plugin_transport_tcp.c 2010-05-02 23:22:21 UTC (rev
11153)
@@ -849,6 +849,9 @@
t6 = addr;
af = AF_INET6;
memset (&a6, 0, sizeof (a6));
+#if HAVE_SOCKADDR_IN_SIN_LEN
+ a6.sin6_len = sizeof (a6);
+#endif
a6.sin6_family = AF_INET6;
a6.sin6_port = t6->t6_port;
memcpy (a6.sin6_addr.s6_addr,
@@ -862,6 +865,9 @@
t4 = addr;
af = AF_INET;
memset (&a4, 0, sizeof (a4));
+#if HAVE_SOCKADDR_IN_SIN_LEN
+ a4.sin_len = sizeof (a4);
+#endif
a4.sin_family = AF_INET;
a4.sin_port = t4->t_port;
a4.sin_addr.s_addr = t4->ipv4_addr;
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2010-05-02 14:53:49 UTC (rev
11152)
+++ gnunet/src/transport/plugin_transport_udp.c 2010-05-02 23:22:21 UTC (rev
11153)
@@ -297,6 +297,9 @@
t6 = addr;
af = AF_INET6;
memset (&a6, 0, sizeof (a6));
+#if HAVE_SOCKADDR_IN_SIN_LEN
+ a6.sin6_len = sizeof (a6);
+#endif
a6.sin6_family = AF_INET6;
a6.sin6_port = t6->u6_port;
memcpy (a6.sin6_addr.s6_addr,
@@ -310,6 +313,9 @@
t4 = addr;
af = AF_INET;
memset (&a4, 0, sizeof (a4));
+#if HAVE_SOCKADDR_IN_SIN_LEN
+ a4.sin_len = sizeof (a4);
+#endif
a4.sin_family = AF_INET;
a4.sin_port = t4->u_port;
a4.sin_addr.s_addr = t4->ipv4_addr;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11153 - gnunet/src/transport,
gnunet <=