98552b0dae
nepim stands for network pipemeter, a tool for measuring available bandwidth between hosts. nepim is also useful to generate network traffic for testing purposes. nepim operates in client/server mode, is able to handle multiple parallel traffic streams, reports periodic partial statistics along the testing, and supports IPv6. feedback and ok alek@
21 lines
555 B
Plaintext
21 lines
555 B
Plaintext
--- src/common.c.orig Sat Jun 17 13:37:04 2006
|
|
+++ src/common.c Sat Jun 17 13:37:34 2006
|
|
@@ -407,7 +407,7 @@
|
|
int *addr_len)
|
|
{
|
|
int size = addr_list_size(list);
|
|
- int i;
|
|
+ int i, result;
|
|
|
|
for (i = 0; i < size; ++i) {
|
|
char hostname[100];
|
|
@@ -435,7 +435,7 @@
|
|
hints.ai_flags = AI_CANONNAME;
|
|
hints.ai_family = PF_UNSPEC;
|
|
|
|
- int result = getaddrinfo(hostname, portname,
|
|
+ result = getaddrinfo(hostname, portname,
|
|
&hints, &ai_res);
|
|
if (result) {
|
|
fprintf(stderr, "%s %s: getaddrinfo(%s,%s): %s\n",
|