diff options
Diffstat (limited to 'networking/ping6.c')
-rw-r--r-- | networking/ping6.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/ping6.c b/networking/ping6.c index 6ab9ce0..9f0509e 100644 --- a/networking/ping6.c +++ b/networking/ping6.c @@ -356,9 +356,7 @@ static void ping(const char *host) #endif /*ICMP6_FILTER*/ /* 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; |