Skip to content

setsockopt errors on linux

I'm running from master on Debian Jessie amd64.

# ./build/main/ntpd/ntpd -u ntp:ntp -g -p /var/run/ntpd.pid -n
02-28T01:35:36 ntpd[1527]: ntpd 0.9.1-38a5c5e Feb 28 2016 00:03:41: Starting
02-28T01:35:36 ntpd[1527]: Command line: ./build/main/ntpd/ntpd -u ntp:ntp -g -p /var/run/ntpd.pid -n
02-28T01:35:36 ntpd[1527]: proto: precision = 0.147 usec (-23)
restrict 0.0.0.0: KOD does nothing without LIMITED.
02-28T01:35:36 ntpd[1527]: restrict 0.0.0.0: KOD does nothing without LIMITED.
restrict ::: KOD does nothing without LIMITED.
02-28T01:35:36 ntpd[1527]: restrict ::: KOD does nothing without LIMITED.
02-28T01:35:36 ntpd[1527]: Listen and drop on 0 v6wildcard [::]:123
02-28T01:35:36 ntpd[1527]: Listen and drop on 1 v4wildcard 0.0.0.0:123
02-28T01:35:36 ntpd[1527]: Listen normally on 2 lo 127.0.0.1:123
02-28T01:35:36 ntpd[1527]: Listen normally on 3 eth0 192.168.0.18:123
02-28T01:35:36 ntpd[1527]: Listen normally on 4 lo [::1]:123
02-28T01:35:36 ntpd[1527]: Listen normally on 5 eth0 [2604:2000:e8a2:d800:a00:27ff:fe5a:b4d1]:123
02-28T01:35:36 ntpd[1527]: Listen normally on 6 eth0 [fe80::a00:27ff:fe5a:b4d1%2]:123
02-28T01:35:36 ntpd[1527]: set_reuseaddr: setsockopt(127.0.0.1, SO_REUSEADDR, off) failed: Invalid argument
02-28T01:35:36 ntpd[1527]: set_reuseaddr: setsockopt(192.168.0.18, SO_REUSEADDR, off) failed: Invalid argument
02-28T01:35:36 ntpd[1527]: set_reuseaddr: setsockopt(::1, SO_REUSEADDR, off) failed: Invalid argument
02-28T01:35:36 ntpd[1527]: set_reuseaddr: setsockopt(2604:2000:e8a2:d800:a00:27ff:fe5a:b4d1, SO_REUSEADDR, off) failed: Invalid argument
02-28T01:35:36 ntpd[1527]: set_reuseaddr: setsockopt(fe80::a00:27ff:fe5a:b4d1%2, SO_REUSEADDR, off) failed: Invalid argument
02-28T01:35:36 ntpd[1527]: Listening on routing socket on fd #23 for interface updates
^C02-28T01:35:39 ntpd[1527]: ntpd exiting on signal 2 (Interrupt)
02-28T01:35:39 ntpd[1527]: 97.107.129.217 local addr 192.168.0.18 -> <null>
02-28T01:35:39 ntpd[1527]: 104.156.99.30 local addr 192.168.0.18 -> <null>
02-28T01:35:39 ntpd[1527]: 2600:3c03::13:3123 local addr 2604:2000:e8a2:d800:a00:27ff:fe5a:b4d1 -> <null>
02-28T01:35:39 ntpd[1527]: 132.163.4.102 local addr 192.168.0.18 -> <null>

Change d4cf8648 broke things when flag was changed from 'int' to 'bool'.