opnsense-src/usr.sbin/bsnmpd/modules/snmp_hostres
Warner Losh f009aedae4 bsnmpd: Return the correct uptime.
Do not assume that the kernel boot time is invariant. It is not. FreeBSD
uses the formula:
	wall_time = boot_time + uptime
where uptime is monotinically increasing and boot_time is adjusted to
get the proper time of day.  FreeBSD offers a way to retrieve the uptime
directly, so use that instead of trying to compute it by subtracting
boot_time from wall_time.

Sponsored by:		Netflix
Reviewed by:		cy@
Differential Revision:	https://reviews.freebsd.org/D30114
2021-05-05 15:12:38 -06:00
..
BEGEMOT-HOSTRES-MIB.txt Add a REVISION section to track changes for the hostres module 2017-01-09 03:18:19 +00:00
hostres_begemot.c
hostres_device_tbl.c bsnmpd: Only refresh devtree if devd event is a new or removed device. 2017-10-28 21:26:49 +00:00
hostres_diskstorage_tbl.c In snmp_hostres, device_map table is used for consistent device table 2012-09-17 07:32:53 +00:00
hostres_fs_tbl.c Use nitems() from sys/param.h. 2017-03-12 03:43:28 +00:00
hostres_network_tbl.c Reduce the memory requirements for the tables by (1) using malloced strings 2006-07-14 09:07:56 +00:00
hostres_partition_tbl.c Fix a comment for the SUN geom class. 2020-02-10 17:16:50 +00:00
hostres_printer_tbl.c snmp_hostres(3): Fix buffer overflow. 2015-07-20 16:08:01 +00:00
hostres_processor_tbl.c Fix CPU load reporting independent of scheduler used. 2010-10-28 20:18:26 +00:00
hostres_scalars.c bsnmpd: Return the correct uptime. 2021-05-05 15:12:38 -06:00
hostres_snmp.c SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
hostres_snmp.h Rename P_KTHREAD struct proc p_flag to P_KPROC. 2016-02-09 16:30:16 +00:00
hostres_storage_tbl.c Fix the build by moving the initializers for len/nswapdev down below the 2016-12-28 08:11:41 +00:00
hostres_swinstalled_tbl.c style(9) fixes 2016-12-28 05:41:53 +00:00
hostres_swrun_tbl.c Spelling. 2012-09-11 08:28:58 +00:00
hostres_tree.def Fix typo 2011-10-24 12:21:58 +00:00
Makefile Remove ad hoc smilint targets made standard in bsd.snmpmod.mk in r312328 2017-01-17 03:41:23 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
snmp_hostres.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00