summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac491e0)
raw | patch | inline | side by side (parent: ac491e0)
author | octo <octo> | |
Thu, 1 Jun 2006 20:39:43 +0000 (20:39 +0000) | ||
committer | octo <octo> | |
Thu, 1 Jun 2006 20:39:43 +0000 (20:39 +0000) |
It's only neccessary when binding to a specific (local) address, which we
don't. FreeBSD, Mac OS X and potentially other operating systems didn't like
this.. GNU/Linux never complained, though..
don't. FreeBSD, Mac OS X and potentially other operating systems didn't like
this.. GNU/Linux never complained, though..
src/liboping/liboping.c | patch | blob | history |
index afd44868133230842b69bf07fe0676d5ce81180d..1ee239301d7a2804911507136a3cdfff81fe11b0 100644 (file)
--- a/src/liboping/liboping.c
+++ b/src/liboping/liboping.c
continue;
}
+#if 0
if (bind (ph->fd, (struct sockaddr *) &sockaddr, sockaddr_len) == -1)
{
dprintf ("bind: %s\n", strerror (errno));
ph->fd = -1;
continue;
}
+#endif
assert (sizeof (struct sockaddr_storage) >= ai_ptr->ai_addrlen);
memset (ph->addr, '\0', sizeof (struct sockaddr_storage));