aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-12 14:30:04 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-12 14:30:04 +0000
commita3cde4e15da717c697cefee06f7eb359c5e5485f (patch)
tree215885b34dbb0c36d4f7189372bf57bc1891fc07 /src/transport/plugin_transport_udp.c
parentdeb14caf5519f62ca11734a938f7d6024c1242a5 (diff)
downloadgnunet-a3cde4e15da717c697cefee06f7eb359c5e5485f.tar.gz
gnunet-a3cde4e15da717c697cefee06f7eb359c5e5485f.zip
dce
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 5a5492858..e86431ca2 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -266,7 +266,6 @@ udp_plugin_send (void *cls,
266 struct UDPMessage *message; 266 struct UDPMessage *message;
267 int ssize; 267 int ssize;
268 ssize_t sent; 268 ssize_t sent;
269 int af;
270 const void *sb; 269 const void *sb;
271 size_t sbs; 270 size_t sbs;
272 struct sockaddr_in a4; 271 struct sockaddr_in a4;
@@ -290,7 +289,6 @@ udp_plugin_send (void *cls,
290 if (addrlen == sizeof (struct IPv6UdpAddress)) 289 if (addrlen == sizeof (struct IPv6UdpAddress))
291 { 290 {
292 t6 = addr; 291 t6 = addr;
293 af = AF_INET6;
294 memset (&a6, 0, sizeof (a6)); 292 memset (&a6, 0, sizeof (a6));
295#if HAVE_SOCKADDR_IN_SIN_LEN 293#if HAVE_SOCKADDR_IN_SIN_LEN
296 a6.sin6_len = sizeof (a6); 294 a6.sin6_len = sizeof (a6);
@@ -306,7 +304,6 @@ udp_plugin_send (void *cls,
306 else if (addrlen == sizeof (struct IPv4UdpAddress)) 304 else if (addrlen == sizeof (struct IPv4UdpAddress))
307 { 305 {
308 t4 = addr; 306 t4 = addr;
309 af = AF_INET;
310 memset (&a4, 0, sizeof (a4)); 307 memset (&a4, 0, sizeof (a4));
311#if HAVE_SOCKADDR_IN_SIN_LEN 308#if HAVE_SOCKADDR_IN_SIN_LEN
312 a4.sin_len = sizeof (a4); 309 a4.sin_len = sizeof (a4);
@@ -775,14 +772,12 @@ udp_plugin_address_pretty_printer (void *cls,
775 struct sockaddr_in6 a6; 772 struct sockaddr_in6 a6;
776 const struct IPv4UdpAddress *t4; 773 const struct IPv4UdpAddress *t4;
777 const struct IPv6UdpAddress *t6; 774 const struct IPv6UdpAddress *t6;
778 int af;
779 size_t sbs; 775 size_t sbs;
780 uint16_t port; 776 uint16_t port;
781 777
782 if (addrlen == sizeof (struct IPv6UdpAddress)) 778 if (addrlen == sizeof (struct IPv6UdpAddress))
783 { 779 {
784 t6 = addr; 780 t6 = addr;
785 af = AF_INET6;
786 memset (&a6, 0, sizeof (a6)); 781 memset (&a6, 0, sizeof (a6));
787 a6.sin6_family = AF_INET6; 782 a6.sin6_family = AF_INET6;
788 a6.sin6_port = t6->u6_port; 783 a6.sin6_port = t6->u6_port;
@@ -796,7 +791,6 @@ udp_plugin_address_pretty_printer (void *cls,
796 else if (addrlen == sizeof (struct IPv4UdpAddress)) 791 else if (addrlen == sizeof (struct IPv4UdpAddress))
797 { 792 {
798 t4 = addr; 793 t4 = addr;
799 af = AF_INET;
800 memset (&a4, 0, sizeof (a4)); 794 memset (&a4, 0, sizeof (a4));
801 a4.sin_family = AF_INET; 795 a4.sin_family = AF_INET;
802 a4.sin_port = t4->u_port; 796 a4.sin_port = t4->u_port;