nuttx-apps/netutils
Daniel P. Carvalho 3727812c22 netutils/ptpd: Discard outlier Sync phase error samples.
A single Sync sample whose receive timestamp was taken late, for
example because the task was scheduled late with software
timestamping, was fed straight into the phase correction and the
drift estimate, and could pull the clock away from the master.

- Add CONFIG_NETUTILS_PTPD_OUTLIER_THRESHOLD_NS (default 0, which
  disables the check). A phase error that differs by more than this
  many nanoseconds from the median of the last five accepted samples
  is discarded, with a warning.
- Accept the sample after eight consecutive rejections and restart
  the history from it, so that a real step of the master is still
  followed while a short burst of disturbed samples is ridden out.
- Restart the history whenever the clock is stepped, since the old
  samples no longer describe the new time base.
- With the default of 0 the behaviour is unchanged.

Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
Assisted-by: Claude:claude-sonnet-5
2026-09-24 11:07:31 +08:00
..
bare netutils: Add BARE 2026-01-23 11:05:48 -03:00
chat apps: Fix unchecked strdup()/asprintf() as requested in #1727 2026-05-23 16:30:52 -04:00
cjson netutils/cjson: fix apps path in CMake 2026-03-26 20:18:52 -04:00
cmux include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
codecs !fsutils/passwd: Replace TEA with PBKDF2-HMAC-SHA256 2026-07-22 17:21:22 +08:00
connectedhomeip cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
cwebsocket netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
dhcp6c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
dhcpc netutils/dhcpc: parse DHCP NTP server option 2026-04-24 10:44:08 -03:00
dhcpd !apps: replace sclock_t with clock_t and drop redundant time_t/off_t casts 2026-05-11 17:38:32 +08:00
discover include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
dropbear netutils/dropbear, testing/nand_sim: do not use fork() to run in background. 2026-08-03 09:22:39 -03:00
esp8266 include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ftpc apps: Fix unchecked strdup()/asprintf() as requested in #1727 2026-05-23 16:30:52 -04:00
ftpd apps: Fix unchecked strdup()/asprintf() as requested in #1727 2026-05-23 16:30:52 -04:00
iperf iperf: compatible work with no IPv4 2026-01-04 00:06:17 +08:00
iptables netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
jsoncpp cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
libcoap cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
libcurl4nx include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
libshvc netutils/libshvc: implement headers export and update shv-libs4c 2026-08-27 02:04:21 +08:00
libulut netutils/libshvc: implement headers export and update shv-libs4c 2026-08-27 02:04:21 +08:00
libwebsockets testing/ostest: Split the fork test into vfork and fork. 2026-08-14 07:46:54 -03:00
mdns netutils/mdns: raise responder stack size default to 8KiB 2026-07-31 15:19:31 +08:00
mqttc netutils/mqttc: fix patch and add mbedtls dependency 2026-04-10 12:23:37 -03:00
nanopb netutils/nanopb: fix unpack step for MACOS 2025-07-14 15:48:08 -03:00
netcat netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
netinit !apps: drop CONFIG_SYSTEM_TIME64 conditionals 2026-05-11 17:38:32 +08:00
netlib netlib: replace DNS ping with gateway ping for connectivity check 2026-05-14 11:58:15 +08:00
nng cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
ntpclient !apps: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-22 13:38:25 +08:00
paho_mqtt netutils/paho_mqtt: configure embedded runtime mode 2026-08-22 17:10:33 -03:00
ping icmpv6_ping.c: change socket type from SOCK_DGRAM to SOCK_RAW. 2026-01-19 22:52:06 +08:00
plcatool netutils: Add plcatool 2025-09-17 19:29:10 +08:00
pppd include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
ptpd netutils/ptpd: Discard outlier Sync phase error samples. 2026-09-24 11:07:31 +08:00
rexec netutils/rexec: initialize ret to avoid maybe-uninitialized 2026-06-27 08:47:46 -03:00
rexecd netutils/rexecd: forward PRIORITY/STACKSIZE config in CMake build 2026-07-23 17:18:08 -03:00
rtptools cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
s2opc netutils/s2opc: add NuttX platform integration 2026-09-07 15:01:21 -03:00
smtp netutils: smtp: treat recv EOF as an error 2026-07-09 09:29:57 +08:00
telnetc Remove unused header files across multiple source files 2025-01-10 21:42:00 +08:00
telnetd include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
tftpc include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
thttpd netutils/thttpd: Apply the same check to related allocation sites 2026-05-23 16:30:52 -04:00
wakaama cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
wakeonlan netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
webclient include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
webserver apps: Fix unchecked strdup()/asprintf() as requested in #1727 2026-05-23 16:30:52 -04:00
xedge netutils/xedge: refactor Makefile to use git clone instead of zip downloads 2025-08-02 10:00:20 -03:00
xmlrpc netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 15:56:35 +01:00
CMakeLists.txt netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Make.defs netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Makefile netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00