[Git][NTPsec/ntpsec][master] SO_BROADCAST is defined in POSIX-1.2001, so no need to conditionalize
Matt Selsky
gitlab at mg.gitlab.com
Sun Dec 10 17:01:06 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
8a566ff0 by Matt Selsky at 2017-12-10T11:45:29-05:00
SO_BROADCAST is defined in POSIX-1.2001, so no need to conditionalize
- - - - -
1 changed file:
- ntpd/ntp_io.c
Changes:
=====================================
ntpd/ntp_io.c
=====================================
--- a/ntpd/ntp_io.c
+++ b/ntpd/ntp_io.c
@@ -1924,7 +1924,6 @@ socket_broadcast_enable(
sockaddr_u * baddr
)
{
-#ifdef SO_BROADCAST
int on = 1;
if (IS_IPV4(baddr)) {
@@ -1940,9 +1939,6 @@ socket_broadcast_enable(
}
iface->flags |= INT_BCASTXMIT;
return true;
-#else
- return false;
-#endif /* SO_BROADCAST */
}
#ifdef OS_MISSES_SPECIFIC_ROUTE_UPDATES
@@ -1957,7 +1953,6 @@ socket_broadcast_disable(
sockaddr_u * baddr
)
{
-#ifdef SO_BROADCAST
int off = 0; /* This seems to be OK as an int */
if (IS_IPV4(baddr) && setsockopt(iface->fd, SOL_SOCKET,
@@ -1968,9 +1963,6 @@ socket_broadcast_disable(
iface->flags &= ~INT_BCASTXMIT;
return true;
-#else
- return false;
-#endif /* SO_BROADCAST */
}
#endif /* OS_MISSES_SPECIFIC_ROUTE_UPDATES */
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8a566ff045d8856b44bda3a1adf6fa9e9e1d2f15
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8a566ff045d8856b44bda3a1adf6fa9e9e1d2f15
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171210/3d28f512/attachment.html>
More information about the vc
mailing list