Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r819 committed - Remove the pointless filling in of the meta protocol, and grab it via ...

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r819 committed - Remove the pointless filling in of the meta protocol, and grab it via ...


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r819 committed - Remove the pointless filling in of the meta protocol, and grab it via ...
  • Date: Sun, 21 Apr 2013 18:32:09 +0000
  • Authentication-results: sfpop-ironport07.merit.edu; dkim=neutral (message not signed) header.i=none

Revision: 819
Author:

Date: Sun Apr 21 11:31:49 2013
Log: Remove the pointless filling in of the meta protocol, and grab it via the sockaddr_storage structure


http://code.google.com/p/ndt/source/detail?r=819

Modified:
/trunk/src/logging.c
/trunk/src/network.c

=======================================
--- /trunk/src/logging.c Thu Apr 11 07:37:40 2013
+++ /trunk/src/logging.c Sun Apr 21 11:31:49 2013
@@ -948,10 +948,10 @@

// get socketaddr size based on whether IPv6/IPV4 address was used
#ifdef AF_INET6
- if (meta.family == AF_INET6)
+ if (meta.c_addr.ss_family == AF_INET6)
len = sizeof(struct sockaddr_in6);
#endif
- if (meta.family == AF_INET)
+ if (meta.c_addr.ss_family == AF_INET)
len = sizeof(struct sockaddr_in);

// Look up the host name and service name information for given struct
=======================================
--- /trunk/src/network.c Thu Apr 11 07:37:40 2013
+++ /trunk/src/network.c Sun Apr 21 11:31:49 2013
@@ -165,9 +165,6 @@
goto failsock;
}

- // set meta test's address domain family to the one used to create socket
- if (fd != -1 && meta.family == 0)
- meta.family = ai->ai_family;
return fd;

// If opening socket failed, print error, and try to close socket


  • [ndt-dev] [ndt] r819 committed - Remove the pointless filling in of the meta protocol, and grab it via ..., ndt, 04/21/2013

Archive powered by MHonArc 2.6.16.

Top of Page