aboutsummaryrefslogtreecommitdiff
path: root/src/net.c
diff options
context:
space:
mode:
authorsethdelliott <devnull@localhost>2010-07-22 18:57:08 +0000
committersethdelliott <devnull@localhost>2010-07-22 18:57:08 +0000
commit8a0b5a5d18280828056093fd21737e4936d35e17 (patch)
treefcc4099f88a929df77fba10b88dfc429eba7989b /src/net.c
parentb60a49dd37350c0a7d05b9ed18347f687c2819ce (diff)
downloadiperf3-8a0b5a5d18280828056093fd21737e4936d35e17.tar.gz
Added support for adding new protocols. Slightly modified iperf_error()
Diffstat (limited to 'src/net.c')
-rw-r--r--src/net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net.c b/src/net.c
index 3e60b81..2c9964e 100644
--- a/src/net.c
+++ b/src/net.c
@@ -45,13 +45,15 @@ netdial(int proto, char *client, int port)
if (connect(s, (struct sockaddr *) & sa, sizeof sa) < 0 && errno != EINPROGRESS) {
return (-1);
}
-
+
+/* XXX: Consider deleting
sn = sizeof sa;
// XXX: Is there a reason to call getpeername() if none of the return values are used?
if (getpeername(s, (struct sockaddr *) & sa, &sn) < 0) {
return (-1);
}
+*/
return (s);
}