]> git.gsnw.org Git - fping.git/commit
initialize ICMP timestamp fields
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sat, 30 Nov 2024 17:48:44 +0000 (18:48 +0100)
committerErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sat, 7 Dec 2024 19:04:17 +0000 (20:04 +0100)
commit4643b5585f171b048e1555d474f80d6ef2d97199
treee27380c52faf4570e5d72089cd9fb2a8566c005c
parent48e7e02d91bb6a72284971aa6f0a30b8fad999aa
initialize ICMP timestamp fields

Initializing the timestamp variables avoids accesssing uninitialized
memory when using --icmp-timestamp with an IPv6 target.

Per RFC 792, setting the high bit indicates a non-standard value,
i.e., this is not a valid timestamp.  Thus this value can be
distinguished from valid timestamps.
src/fping.c