mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 05:25:06 -05:00
Set source IPv6 address on NTP reply
This is needed on systems with multiple IPv6 addresses to reply with the same source address as the destination address of the NTP request.
This commit is contained in:
9
configure
vendored
9
configure
vendored
@@ -360,6 +360,15 @@ if [ $feat_ipv6 = "1" ] && \
|
||||
return !inet_ntop(AF_INET6, &n.sin6_addr.s6_addr, p, sizeof(p));'
|
||||
then
|
||||
add_def HAVE_IPV6
|
||||
if ! test_code 'in6_pktinfo' 'sys/socket.h netinet/in.h' '' '' '
|
||||
return sizeof(struct in6_pktinfo);'
|
||||
then
|
||||
if test_code 'in6_pktinfo with _GNU_SOURCE' 'sys/socket.h netinet/in.h' \
|
||||
'-D_GNU_SOURCE' '' 'return sizeof(struct in6_pktinfo);'
|
||||
then
|
||||
add_def _GNU_SOURCE
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $feat_pps = "1" ] && \
|
||||
|
||||
Reference in New Issue
Block a user