Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/statusq.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/time.h>
#include "statusq.h"
Expand Down Expand Up @@ -134,6 +135,14 @@ send_query ( int sock, struct in_addr dest_addr, my_uint32_t rtt_base )
sizeof ( dest_sockaddr ) );
if ( status == -1 )
{
/* EACCES on sendto means the kernel has classified the destination
* as a directed-broadcast for a locally-connected subnet and the
* socket does not have SO_BROADCAST set. In iteration mode this is
* just an address we should skip rather than a real failure --
* print nothing instead of a misleading "Permission denied". */
if ( errno == EACCES )
return;

snprintf ( errmsg,
sizeof errmsg,
"%s\tSendto failed",
Expand Down