Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112055598
D21258.id60788.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
679 B
Referenced Files
None
Subscribers
None
D21258.id60788.diff
View Options
Index: head/sbin/ping/ping.c
===================================================================
--- head/sbin/ping/ping.c
+++ head/sbin/ping/ping.c
@@ -760,9 +760,15 @@
}
}
#ifdef SO_TIMESTAMP
- { int on = 1;
- if (setsockopt(srecv, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on)) < 0)
- err(EX_OSERR, "setsockopt SO_TIMESTAMP");
+ {
+ int on = 1;
+ int ts_clock = SO_TS_MONOTONIC;
+ if (setsockopt(srecv, SOL_SOCKET, SO_TIMESTAMP, &on,
+ sizeof(on)) < 0)
+ err(EX_OSERR, "setsockopt SO_TIMESTAMP");
+ if (setsockopt(srecv, SOL_SOCKET, SO_TS_CLOCK, &ts_clock,
+ sizeof(ts_clock)) < 0)
+ err(EX_OSERR, "setsockopt SO_TS_CLOCK");
}
#endif
if (sweepmax) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 4:45 AM (16 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17130121
Default Alt Text
D21258.id60788.diff (679 B)
Attached To
Mode
D21258: ping: fix triptime calculation after r350998
Attached
Detach File
Event Timeline
Log In to Comment