OpenBSD CVS

CVS log for src/usr.sbin/snmpd/log.c


[BACK] Up to [local] / src / usr.sbin / snmpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 21 12:43:31 2023 UTC (5 months, 2 weeks ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

Clean up snmpd's header situation.

With the help of tb@ and include-what-you-use.

OK tb@

Revision 1.16 / (download) - annotate - [select for diffs], Tue Mar 21 12:06:56 2017 UTC (7 years, 2 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored)

From a syslog perspective it does not make sense to log fatal and
warn with the same severity.  Switch log_warn() to LOG_ERR and keep
fatal() at LOG_CRIT.
OK reyk@ florian@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jan 9 14:49:22 2017 UTC (7 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.14: +12 -5 lines
Diff to previous 1.14 (colored)

Stop accessing verbose and debug variables from log.c directly.

This replaces log_verbose() and "extern int verbose" with the two functions
log_setverbose() and log_getverbose().

Pointed out by benno@
OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 8 20:31:03 2017 UTC (7 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.13: +11 -9 lines
Diff to previous 1.13 (colored)

Sync log.c with the latest version from vmd/log.c that preserves errno
so it is safe calling log_* after an error without loosing the it.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 12 11:57:31 2016 UTC (7 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.12: +11 -8 lines
Diff to previous 1.12 (colored)

copy updated log.c from vmd: for correctness, save errno when doing
additional actions before printing it.  OK rzalamena@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 7 12:13:51 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

sync with vmd

Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 22 13:27:13 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.10: +52 -19 lines
Diff to previous 1.10 (colored)

Update log.c: change fatal() and fatalx() into variadic functions,
include the process name, and replace all calls of fatal*(NULL) with
fatal(__func__) for better debugging.

OK benno@

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 21 13:46:29 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Once again, fix the license text.  After many years, we just cannot
get rid of the "LOSS OF MIND" joke.  Haha.  We keep on removing it and
it shows up again because it accidentally gets synced from somewhere
else.  bgpd and ospfd don't have it anymore, but their offsprings
still carry it. If you see it, remove it, and, in the OpenBSD ISC
case, use the original text from /usr/share/misc/license.template.
All authors agree.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 21 13:06:22 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.8: +21 -84 lines
Diff to previous 1.8 (colored)

Move local logging functions to util.c and copy log.c from iked.  Now
a copy of the same log.c file is shared by relayd, httpd, iked, and
snmpd.  No functional changes.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 8 23:28:48 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.7: +2 -3 lines
Diff to previous 1.7 (colored)

revert debug changes. reyk would like debug to remain a counter.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 8 23:07:49 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

flags should be flags, not counters. from martijn van duren

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 16 00:05:13 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

first batch of cleanup to programs based upon the namespace cleanups
in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h
change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1,
LOGIN_NAME_MAX, etc etc
ok millert guenther, some review by doug

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 25 03:23:49 2014 UTC (9 years, 7 months ago) by lteo
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

Remove unnecessary netinet/in_systm.h include.

ok millert@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 17 08:42:44 2013 UTC (10 years, 7 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.3: +36 -3 lines
Diff to previous 1.3 (colored)

Update snmpd(8) to use the proc.c privsep style from iked and relayd.

ok sthen@ deraadt@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 29 14:52:49 2010 UTC (14 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.2: +26 -1 lines
Diff to previous 1.2 (colored)

Sync kroute.c code with bgpd so that snmpd is able to track INET6 addrs as
well. First big sync, the interface address tree still needs to be made
AF independent but that will be done in a second step.
OK jsg@

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 18 12:30:06 2008 UTC (15 years, 10 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.1: +9 -11 lines
Diff to previous 1.1 (colored)

merge log_host with relayd's version using getnameinfo and rename it
to print_host.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 5 09:22:44 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3

Start working on snmpd(8) and snmpctl(8), a lightweight SNMP implementation
for OpenBSD.  SNMP is a necessary evil.  This is work in progress, don't
expect too much from it yet.

ok deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.