diff options
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/ping.c b/networking/ping.c index 400d565d9..fc01b5e1d 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -351,9 +351,7 @@ static void ping(const char *host) memcpy(&pingaddr.sin_addr, hostent->h_addr, sizeof(pingaddr.sin_addr)); /* enable broadcast pings */ - sockopt = 1; - setsockopt(pingsock, SOL_SOCKET, SO_BROADCAST, (char *) &sockopt, - sizeof(sockopt)); + setsockopt_broadcast(pingsock); /* set recv buf for broadcast pings */ sockopt = 48 * 1024; |