History log of /openbsd-current/usr.sbin/ospf6d/log.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_2_BASE
# 1.15 12-Aug-2017 benno

bring ospf6d's log.c in sync with ospfd and bgpd
ok florian@ claudio@


Revision tags: OPENBSD_6_1_BASE
# 1.14 21-Mar-2017 bluhm

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@


# 1.13 23-Jan-2017 benno

copy log.c/h from bgpd.
ok claudio


# 1.12 02-Sep-2016 benno

work on making log.c similar in all daemons:

move daemon-local functions into new logmsg.c, and reduce
the (mostly whitespace) differences so that log.c's can be diffed easily.

ok claudio@, feedback from henning@, deraadt@, reyk@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.11 03-Nov-2014 bluhm

Convert the logic in yyerror(). Instead of creating a temporary
format string, create a temporary message.
OK deraadt@ claudio@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 22-Oct-2012 bluhm

Unfortunately "ospf6ctl show fib" printed embedded scopes as the
destination addresses still contain them. To fix that, call
recoverscope() in log_in6addr(). Also log_in6addr_scope() should
not fiddle with the scope itself, put that into a generic function
addscope().
OK claudio@


# 1.9 20-Sep-2012 bluhm

Bring back log_in6addr_scope() as ospf6ctl uses it.
Found by kettenis@ the hard way.


# 1.8 19-Sep-2012 bluhm

Do not care about the kame hack when logging a link local address.
The scope should have been converted when we received it from kernel.
Remove log_in6addr_scope(), it is not used.
ok claudio@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.7 20-Aug-2011 sthen

Decouple log_verbose() from log_init() so the verbose flag stays set with
"-v" (previously only "-vd" worked). Similar to recent ospfd commit.
ok claudio@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.6 22-Dec-2009 claudio

Implement log_in6addr_scope() yet another function doing the same thing
again but different because of link local addressing.


# 1.5 02-Nov-2009 claudio

Add IMSG_CTL_LOG_VERBOSE similar to ospfd it allows to toggle debug logging.
henning, sthen, michele like the idea


Revision tags: OPENBSD_4_6_BASE
# 1.4 29-Mar-2009 stsp

Add log_rtr_id() function to log 32bit numbers in dot-quad notation.
Most obvious use is to log router IDs.
To facilitate logging of multiple IDs within the same format string,
we use NUM_LOGS static buffers, just like log_sockaddr() does.

help and ok claudio@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.3 14-Oct-2007 claudio

Switch log_sockaddr() to take a void * so it is not necessary to cast the
sockaddr_in6 or sockaddr_in to a sockaddr.


# 1.2 08-Oct-2007 claudio

Use a small cyclic buffer ring in log_in6addr() so that the function can be
used more then once per printf. The current limit is 4.


# 1.1 08-Oct-2007 norby

Welcome ospf6d

The new ospf6d daemon will support OSPFv3, basically OSPF for IPv6 networks.

It is heavily based on ospfd(8), it is more or less a copy and paste of it.
Currently some unneeded stuff has been removed and the trasition from
IPv4 to IPv6 has begun.

ospf6d is not very usefull at the moment, it is being imported to allow more
people to work on it concurrently.

Not yet connected to the builds.

ok claudio@ dlg@